From: Richard Trieu Date: Tue, 23 Jul 2013 21:06:45 +0000 (+0000) Subject: Changed "an macro" to "a macro" in diagnostic note. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=679efe14c65492c74eaa6dc98671abcdbfac8da8;p=clang Changed "an macro" to "a macro" in diagnostic note. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186988 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/DiagnosticLexKinds.td b/include/clang/Basic/DiagnosticLexKinds.td index d7b35c92ba..90a3d71c77 100644 --- a/include/clang/Basic/DiagnosticLexKinds.td +++ b/include/clang/Basic/DiagnosticLexKinds.td @@ -464,7 +464,7 @@ def note_suggest_parens_for_macro : Note< "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< diff --git a/test/Preprocessor/macro_with_initializer_list.cpp b/test/Preprocessor/macro_with_initializer_list.cpp index 4f5bf6d1db..74966f9130 100644 --- a/test/Preprocessor/macro_with_initializer_list.cpp +++ b/test/Preprocessor/macro_with_initializer_list.cpp @@ -150,13 +150,13 @@ void test() { 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}:"(" @@ -178,5 +178,5 @@ void test2() { {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}} }