[clang] [Sema]Use tag name lookup for class names (PR #112166)

Gábor Spaits via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 14 09:01:46 PDT 2024


================
@@ -357,10 +357,13 @@ ParsedType Sema::getTypeName(const IdentifierInfo &II, SourceLocation NameLoc,
       return nullptr;
   }
 
-  // FIXME: LookupNestedNameSpecifierName isn't the right kind of
-  // lookup for class-names.
-  LookupNameKind Kind = isClassName ? LookupNestedNameSpecifierName :
-                                      LookupOrdinaryName;
+  // In case we know that the identifier is a class name, we know that it is
----------------
spaits wrote:

Sorry for the bad wording/sentence structure. English is my second language :).

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


More information about the cfe-commits mailing list