Skip to content

Conversation

@daniel-grumberg
Copy link
Contributor

rdar://135044923

@llvmbot llvmbot added the clang Clang issues not falling into any other category label Sep 3, 2024
@llvmbot
Copy link
Member

llvmbot commented Sep 3, 2024

@llvm/pr-subscribers-clang

Author: Daniel Grumberg (daniel-grumberg)

Changes

rdar://135044923


Full diff: https://github.com/llvm/llvm-project/pull/107059.diff

1 Files Affected:

  • (modified) clang/lib/ExtractAPI/ExtractAPIConsumer.cpp (+1-1)
diff --git a/clang/lib/ExtractAPI/ExtractAPIConsumer.cpp b/clang/lib/ExtractAPI/ExtractAPIConsumer.cpp
index 0adc23280fd6c0..75c2dec22400b9 100644
--- a/clang/lib/ExtractAPI/ExtractAPIConsumer.cpp
+++ b/clang/lib/ExtractAPI/ExtractAPIConsumer.cpp
@@ -350,7 +350,7 @@ class APIMacroCallback : public MacroCallback {
   bool shouldMacroBeIncluded(const SourceLocation &MacroLoc,
                              StringRef ModuleName) override {
     // Do not include macros from external files
-    return LCF(MacroLoc) || API.ProductName == ModuleName;
+    return LCF(MacroLoc);
   }
 
 private:

@daniel-grumberg daniel-grumberg merged commit 86835d2 into llvm:main Sep 3, 2024
daniel-grumberg added a commit to daniel-grumberg/llvm-project that referenced this pull request Sep 3, 2024
daniel-grumberg added a commit to swiftlang/llvm-project that referenced this pull request Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clang Clang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants