Changed "an macro" to "a macro" in diagnostic note.
authorRichard Trieu <rtrieu@google.com>
Tue, 23 Jul 2013 21:06:45 +0000 (21:06 +0000)
committerRichard Trieu <rtrieu@google.com>
Tue, 23 Jul 2013 21:06:45 +0000 (21:06 +0000)
llvm-svn: 186988

clang/include/clang/Basic/DiagnosticLexKinds.td
clang/test/Preprocessor/macro_with_initializer_list.cpp

index d7b35c9..90a3d71 100644 (file)
@@ -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<
index 4f5bf6d..74966f9 100644 (file)
@@ -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}}
 }