Skip to content

Commit dbd8f38

Browse files
authored
Merge pull request #7896 from apple/static-analyzer-cherrypicks-2023-12-unbreak-tests
Static analyzer cherrypicks 2023/12 - unbreak tests.
2 parents 067380b + 83b8176 commit dbd8f38

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clang/test/SemaCXX/attr-suppress.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace N {
1515
[[gsl::suppress]] int x; // expected-error {{'suppress' attribute takes at least 1 argument}}
1616
[[gsl::suppress()]] int y; // expected-error {{'suppress' attribute takes at least 1 argument}}
1717
int [[gsl::suppress("r")]] z; // expected-error {{'suppress' attribute cannot be applied to types}}
18-
[[gsl::suppress(f_)]] float f; // expected-error {{expected string literal as argument of 'suppress' attribute}}
18+
[[gsl::suppress(f_)]] float f; // expected-error {{'suppress' attribute requires a string}}
1919
}
2020

2121
union [[gsl::suppress("type.1")]] U {
@@ -52,7 +52,7 @@ namespace N {
5252
int [[clang::suppress("r")]] z;
5353
// expected-error@-1 {{'suppress' attribute cannot be applied to types}}
5454
[[clang::suppress(foo)]] float f;
55-
// expected-error@-1 {{expected string literal as argument of 'suppress' attribute}}
55+
// expected-error@-1 {{'suppress' attribute requires a string}}
5656
}
5757

5858
class [[clang::suppress("type.1")]] V {

clang/test/SemaObjC/attr-suppress.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ SUPPRESS1 switch (a) { // no-warning
3131
int SUPPRESS2("r") z;
3232
SUPPRESS2(foo)
3333
float f;
34-
// expected-error@-2 {{expected string literal as argument of 'suppress' attribute}}
34+
// expected-error@-2 {{'suppress' attribute requires a string}}
3535
}
3636

3737
union SUPPRESS2("type.1") U {

0 commit comments

Comments
 (0)