[clang] 86835d2 - [clang][ExtractAPI] Remove erroneous module name check in MacroCallbacks (#107059)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 3 08:21:39 PDT 2024
Author: Daniel Grumberg
Date: 2024-09-03T16:21:35+01:00
New Revision: 86835d2d5a24ed00ed3747b77029c896ba935036
URL: https://github.com/llvm/llvm-project/commit/86835d2d5a24ed00ed3747b77029c896ba935036
DIFF: https://github.com/llvm/llvm-project/commit/86835d2d5a24ed00ed3747b77029c896ba935036.diff
LOG: [clang][ExtractAPI] Remove erroneous module name check in MacroCallbacks (#107059)
rdar://135044923
Added:
Modified:
clang/lib/ExtractAPI/ExtractAPIConsumer.cpp
Removed:
################################################################################
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