Skip to content

Commit 6ef338a

Browse files
committed
[clang][Tests] Update diagnostic tests for function-like macros for the updated note
1 parent bd08487 commit 6ef338a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/test/Preprocessor/macro_with_initializer_list.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ void test_NE() {
134134
// CHECK: fix-it:"{{.*}}macro_with_initializer_list.cpp":{110:32-110:32}:")"
135135

136136
#define INIT(var, init) Foo var = init; // expected-note 3{{macro 'INIT' defined here}}
137-
// expected-note@-1 2{{'INIT' is defined here as a function-like macro; did you mean to write 'INIT(...)'}}
137+
// expected-note@-1 2{{'INIT' is defined here as a function-like macro; did you mean 'INIT(...)'}}
138138
// Can't use an initializer list as a macro argument. The commas in the list
139139
// will be interpretted as argument separaters and adding parenthesis will
140140
// make it no longer an initializer list.
@@ -166,7 +166,7 @@ void test() {
166166
#define M(name,a,b,c,d,e,f,g,h,i,j,k,l) \
167167
Foo name = a + b + c + d + e + f + g + h + i + j + k + l;
168168
// expected-note@-2 2{{defined here}}
169-
// expected-note@-3 {{'M' is defined here as a function-like macro; did you mean to write 'M(...)'}}
169+
// expected-note@-3 {{'M' is defined here as a function-like macro; did you mean 'M(...)'}}
170170
void test2() {
171171
M(F1, Foo(), Foo(), Foo(), Foo(), Foo(), Foo(),
172172
Foo(), Foo(), Foo(), Foo(), Foo(), Foo());
@@ -184,7 +184,7 @@ void test2() {
184184
}
185185

186186
#define LIM() 10
187-
// expected-note@-1 {{'LIM' is defined here as a function-like macro; did you mean to write 'LIM(...)'}}
187+
// expected-note@-1 {{'LIM' is defined here as a function-like macro; did you mean 'LIM(...)'}}
188188

189189
void test3() {
190190
int iter = LIM;

0 commit comments

Comments
 (0)