llvm-project
49682401 - Remove CXXRecordDecl printer FIXME (#175397)

Commit
17 days ago
Remove CXXRecordDecl printer FIXME (#175397) It suggested it would be better to print attributes before the decl kind, to be consistent with value declarations. But attributes are not accepted by the language before the decl kind: [[deprecated]] class A; __attribute__((deprecated)) class A; __declspec(deprecated) class A; are all invalid or ignored. The only way to put an attribute before the decl kind is with something like: [[deprecated]] struct A {} a; But that declares a variable, not a record tyoe, and will be correctly handled by the variable decl printer.
Author
Parents
Loading