[clang] [AST] Fix nested name specifiers printing as NamespaceNamespace (PR #65266)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 5 16:59:50 PDT 2023
================
@@ -792,11 +793,11 @@ void clang::TextNodeDumper::dumpNestedNameSpecifier(const NestedNameSpecifier *N
OS << " '" << NNS->getAsIdentifier()->getName() << "'";
break;
case NestedNameSpecifier::Namespace:
- OS << " Namespace";
+ OS << " "; // "Namespace" is printed as the decl kind.
dumpBareDeclRef(NNS->getAsNamespace());
break;
case NestedNameSpecifier::NamespaceAlias:
- OS << " NamespaceAlias";
+ OS << " "; // "NamespaceAlias" is printed as the decl kind.
----------------
shafik wrote:
I don't see a test that covers this case.
https://github.com/llvm/llvm-project/pull/65266
More information about the cfe-commits
mailing list