"parentheses are required around macro argument containing braced "
"initializer list">;
def note_init_list_at_beginning_of_macro_argument : Note<
- "cannot use initializer list at the beginning of an macro argument">;
+ "cannot use initializer list at the beginning of a macro argument">;
def err_too_few_args_in_macro_invoc : Error<
"too few arguments provided to function-like macro invocation">;
def err_pp_bad_paste : Error<
INIT(e, {1, 2, 3});
// expected-error@-1 {{too many arguments provided}}
// expected-error@-2 {{use of undeclared identifier}}
- // expected-note@-3 {{cannot use initializer list at the beginning of an macro argument}}
+ // expected-note@-3 {{cannot use initializer list at the beginning of a macro argument}}
// Can't be fixed by parentheses.
INIT(e, {1, 2, 3} + {1, 2, 3});
// expected-error@-1 {{too many arguments provided}}
// expected-error@-2 {{use of undeclared identifier}}
- // expected-note@-3 {{cannot use initializer list at the beginning of an macro argument}}
+ // expected-note@-3 {{cannot use initializer list at the beginning of a macro argument}}
}
// CHECK: fix-it:"{{.*}}macro_with_initializer_list.cpp":{145:11-145:11}:"("
{1,2,3}, {1,2,3}, {1,2,3}, {1,2,3}, {1,2,3}, {1,2,3});
// expected-error@-2 {{too many arguments provided}}
// expected-error@-3 {{use of undeclared identifier}}
- // expected-note@-4 {{cannot use initializer list at the beginning of an macro argument}}
+ // expected-note@-4 {{cannot use initializer list at the beginning of a macro argument}}
}