Skip to content

Commit 497ed74

Browse files
[clang][ExtractAPI] Remove erroneous module name check in MacroCallbacks (llvm#107059) (#9203)
rdar://135044923
1 parent afee7f1 commit 497ed74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/ExtractAPI/ExtractAPIConsumer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ class APIMacroCallback : public MacroCallback {
350350
bool shouldMacroBeIncluded(const SourceLocation &MacroLoc,
351351
StringRef ModuleName) override {
352352
// Do not include macros from external files
353-
return LCF(MacroLoc) || API.ProductName == ModuleName;
353+
return LCF(MacroLoc);
354354
}
355355

356356
private:

0 commit comments

Comments
 (0)