[clang] Control spacing for attribute printing (PR #174197)
Kim Gräsman via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 10 05:22:31 PST 2026
================
@@ -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:
@vgvassilev Could you help me merge? I don't have contributor permissions.
https://github.com/llvm/llvm-project/pull/174197
More information about the cfe-commits
mailing list