[clang] [clang][ExtractAPI] Remove erroneous module name check in MacroCallbacks (PR #107059)
Daniel Grumberg via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 3 01:52:02 PDT 2024
https://github.com/daniel-grumberg created https://github.com/llvm/llvm-project/pull/107059
rdar://135044923
>From caf560529093f80b5b6e6220ec19e244f57779d3 Mon Sep 17 00:00:00 2001
From: Daniel Grumberg <dgrumberg at apple.com>
Date: Mon, 2 Sep 2024 18:47:40 +0100
Subject: [PATCH] [clang][ExtractAPI] Remove erroneous module name check in
MacroCallbacks
rdar://135044923
---
clang/lib/ExtractAPI/ExtractAPIConsumer.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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:
More information about the cfe-commits
mailing list