We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5df8461 commit 5ef3e7bCopy full SHA for 5ef3e7b
clang/lib/AST/Decl.cpp
@@ -1790,8 +1790,8 @@ void NamedDecl::printNestedNameSpecifier(raw_ostream &OS,
1790
else
1791
OS << *ND;
1792
} else if (const auto *RD = dyn_cast<RecordDecl>(DC)) {
1793
- if (TypedefNameDecl *Typedef = RD->getTypedefNameForAnonDecl())
1794
- OS << Typedef->getIdentifier()->getName();
+ if (TypedefNameDecl *TD = RD->getTypedefNameForAnonDecl())
+ OS << *TD;
1795
else if (!RD->getIdentifier())
1796
OS << "(anonymous " << RD->getKindName() << ')';
1797
0 commit comments