r186988 - Changed "an macro" to "a macro" in diagnostic note.

Richard Trieu rtrieu at google.com
Tue Jul 23 14:06:45 PDT 2013


Author: rtrieu
Date: Tue Jul 23 16:06:45 2013
New Revision: 186988

URL: http://llvm.org/viewvc/llvm-project?rev=186988&view=rev
Log:
Changed "an macro" to "a macro" in diagnostic note.

Modified:
    cfe/trunk/include/clang/Basic/DiagnosticLexKinds.td
    cfe/trunk/test/Preprocessor/macro_with_initializer_list.cpp

Modified: cfe/trunk/include/clang/Basic/DiagnosticLexKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticLexKinds.td?rev=186988&r1=186987&r2=186988&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticLexKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticLexKinds.td Tue Jul 23 16:06:45 2013
@@ -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<

Modified: cfe/trunk/test/Preprocessor/macro_with_initializer_list.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/macro_with_initializer_list.cpp?rev=186988&r1=186987&r2=186988&view=diff
==============================================================================
--- cfe/trunk/test/Preprocessor/macro_with_initializer_list.cpp (original)
+++ cfe/trunk/test/Preprocessor/macro_with_initializer_list.cpp Tue Jul 23 16:06:45 2013
@@ -150,13 +150,13 @@ void test() {
   INIT(e, {1, 2, 3});
   // expected-error at -1 {{too many arguments provided}}
   // expected-error at -2 {{use of undeclared identifier}}
-  // expected-note at -3 {{cannot use initializer list at the beginning of an macro argument}}
+  // expected-note at -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 at -1 {{too many arguments provided}}
   // expected-error at -2 {{use of undeclared identifier}}
-  // expected-note at -3 {{cannot use initializer list at the beginning of an macro argument}}
+  // expected-note at -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 at -2 {{too many arguments provided}}
   // expected-error at -3 {{use of undeclared identifier}}
-  // expected-note at -4 {{cannot use initializer list at the beginning of an macro argument}}
+  // expected-note at -4 {{cannot use initializer list at the beginning of a macro argument}}
 }





More information about the cfe-commits mailing list