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

Kim Gräsman via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 2 06:14:13 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:

... or are there examples of attributes that can go before the tag kind?
```
[[???]] class A {};
__declspec(???) class B {};
__attribute__((???)) class C {};
```

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


More information about the cfe-commits mailing list