[clang] [clang][Sema] Suggest/Hint Standard Library Include File (PR #146227)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 1 06:22:00 PDT 2025


================
@@ -454,6 +459,9 @@ bool Parser::ParseOptionalCXXScopeSpecifier(
       // We have an identifier followed by a '::'. Lookup this name
       // as the name in a nested-name-specifier.
       Token Identifier = Tok;
+      FullNamespace += Identifier.getIdentifierInfo()->getName();
+      FullNamespace += "::";
----------------
erichkeane wrote:

As this is extra work, just make it a part of the printing, not here.  Better yet, instead of storing `FullNameSpace`, just store the IdentifierInfo list.

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


More information about the cfe-commits mailing list