================ @@ -186,14 +186,14 @@ class AttributeCommonInfo { bool isGNUScope() const; bool isClangScope() const; - bool isCXX11Attribute() const { return SyntaxUsed == AS_CXX11 || IsAlignas; } - + bool isAlignas() const { return IsAlignas; } + bool isCXX11Attribute() const { return SyntaxUsed == AS_CXX11; } ---------------- AaronBallman wrote:
I think the trouble is that we've got code like this: https://github.com/llvm/llvm-project/blob/eb14f47bf1ccfda500ba3c3092d70e269f6f0b56/clang/lib/Parse/ParseDeclCXX.cpp#L3062 where we're using "isCXX11Attribute()" to mean "attribute-specifier" as a grammar term and not `[[]]` syntax specifically. As best I can tell, I think we're fine for `isAlignas()` to report true for both `alignas` and `_Alignas` spellings; we can distinguish between the C and C++ spellings by looking at the language options in force. WDYT @erichkeane? https://github.com/llvm/llvm-project/pull/65638 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits