[clang] [Modules] Fix an identifier hiding a function-like macro definition. (PR #135471)

Jan Svoboda via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 14 15:30:49 PDT 2025


================
@@ -2419,6 +2422,9 @@ namespace {
       // declarations it needs.
       ++NumIdentifierLookupHits;
       Found = *Pos;
+      if (Trait.hasMoreInformationInDependencies())
+        // Look for the identifier in extra modules as they contain more info.
+        return false;
----------------
jansvoboda11 wrote:

Nit: I'd wrap this in braces since it spans two lines.

https://github.com/llvm/llvm-project/pull/135471


More information about the cfe-commits mailing list