Skip to content

Commit 453f5b2

Browse files
committed
review fixes
1 parent ebd962d commit 453f5b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/include/clang/Parse/Parser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3068,7 +3068,7 @@ class Parser : public CodeCompletionHandler {
30683068
Tok.is(tok::l_square)) {
30693069
ParsedAttributes AttrsWithRange(AttrFactory);
30703070
ParseMicrosoftAttributes(AttrsWithRange);
3071-
AttrsParsed = AttrsWithRange.size();
3071+
AttrsParsed = !AttrsWithRange.empty();
30723072
Attrs.takeAllFrom(AttrsWithRange);
30733073
}
30743074
return AttrsParsed;

clang/test/Parser/c2x-alignas.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ void fn_with_decl() {
2424
__attribute__(()) alignas(int) int c; // expected-none
2525
[[]] __attribute__(()) alignas(int) int d; // expected-none
2626
alignas(int) [[]] __attribute__(()) int e; // expected-error {{an attribute list cannot appear here}}
27-
}
27+
}

0 commit comments

Comments
 (0)