[clang] Control spacing for attribute printing (PR #174197)

Kim Gräsman via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 5 11:52:57 PST 2026


================
@@ -1085,8 +1125,11 @@ void DeclPrinter::VisitCXXRecordDecl(CXXRecordDecl *D) {
 
   // FIXME: Move before printing the decl kind to match the behavior of the
----------------
kimgr wrote:

Thanks, that makes sense. In that case it's handled by [`VisitVarDecl`](https://github.com/llvm/llvm-project/blob/b22bbe445f4d432c45f67103475da55839381809/clang/lib/AST/DeclPrinter.cpp#L938). So I think we're right to be confused by the FIXME.

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


More information about the cfe-commits mailing list