[clang] [Sema]Use tag name lookup for class names (PR #112166)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 14 09:00:15 PDT 2024
=?utf-8?q?Gábor?= Spaits <gaborspaits1 at gmail.com>,Gabor Spaits
<gaborspaits1 at gmail.com>,
=?utf-8?q?Gábor?= Spaits <gaborspaits1 at gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/112166 at github.com>
================
@@ -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
----------------
erichkeane wrote:
```suggestion
// In the case where we know that the identifier is a class name, we know that it is
```
https://github.com/llvm/llvm-project/pull/112166
More information about the cfe-commits
mailing list