================
@@ -584,12 +585,17 @@ void DeclPrinter::VisitTypedefDecl(TypedefDecl *D) {
}
QualType Ty = D->getTypeSourceInfo()->getType();
Ty.print(Out, Policy, D->getName(), Indentation);
- prettyPrintAttributes(D);
+
+ if (std::optional<std::string> Attrs = prettyPrintAttributes(D)) {
+ Out << ' ' << *Attrs;
+ }
----------------
kimgr wrote:
Oops. Done!
https://github.com/llvm/llvm-project/pull/174197
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits