We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebd962d commit 453f5b2Copy full SHA for 453f5b2
clang/include/clang/Parse/Parser.h
@@ -3068,7 +3068,7 @@ class Parser : public CodeCompletionHandler {
3068
Tok.is(tok::l_square)) {
3069
ParsedAttributes AttrsWithRange(AttrFactory);
3070
ParseMicrosoftAttributes(AttrsWithRange);
3071
- AttrsParsed = AttrsWithRange.size();
+ AttrsParsed = !AttrsWithRange.empty();
3072
Attrs.takeAllFrom(AttrsWithRange);
3073
}
3074
return AttrsParsed;
clang/test/Parser/c2x-alignas.c
@@ -24,4 +24,4 @@ void fn_with_decl() {
24
__attribute__(()) alignas(int) int c; // expected-none
25
[[]] __attribute__(()) alignas(int) int d; // expected-none
26
alignas(int) [[]] __attribute__(()) int e; // expected-error {{an attribute list cannot appear here}}
27
-}
+}
0 commit comments