[clang] [clang] Add formal linkage to textual AST dump (PR #194600)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 28 06:06:50 PDT 2026


================
@@ -2295,6 +2318,11 @@ void TextNodeDumper::VisitTypedefDecl(const TypedefDecl *D) {
   dumpType(D->getUnderlyingType());
   if (D->isModulePrivate())
     OS << " __module_private__";
+
+  const TagDecl *TD = D->getUnderlyingType()->getAsTagDecl();
+  if (TD && TD->getTypedefNameForAnonDecl()) {
----------------
AaronBallman wrote:

Do we need to do anything to handle `ObjCTypeParamDecl` -- do those even have the notion of linkage for anonymous decls? CC @rjmccall @ahatanak 

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


More information about the cfe-commits mailing list