[clang] [CLANG] Enable alignas after GNU attributes (PR #133107)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 15 09:20:17 PDT 2025
================
@@ -3062,13 +3062,16 @@ class Parser : public CodeCompletionHandler {
bool CouldBeBitField = false);
Decl *ParseHLSLBuffer(SourceLocation &DeclEnd);
- void MaybeParseMicrosoftAttributes(ParsedAttributes &Attrs) {
+ bool MaybeParseMicrosoftAttributes(ParsedAttributes &Attrs) {
+ bool AttrsParsed = false;
if ((getLangOpts().MicrosoftExt || getLangOpts().HLSL) &&
Tok.is(tok::l_square)) {
ParsedAttributes AttrsWithRange(AttrFactory);
ParseMicrosoftAttributes(AttrsWithRange);
+ AttrsParsed = AttrsWithRange.size();
----------------
AaronBallman wrote:
```suggestion
AttrsParsed = !AttrsWithRange.empty();
```
https://github.com/llvm/llvm-project/pull/133107
More information about the cfe-commits
mailing list