summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2013-07-23 21:06:45 +0000
committerRichard Trieu <rtrieu@google.com>2013-07-23 21:06:45 +0000
commit7aa7218545e392049b0a1ee5beff1f08d4b360de (patch)
tree66a875c516b40ea8a7741e094dece8d3a04d8b74
parent43ef8ed5f55c6e75ca0e19eb13d37a611af39979 (diff)
downloadbcm5719-llvm-7aa7218545e392049b0a1ee5beff1f08d4b360de.tar.gz
bcm5719-llvm-7aa7218545e392049b0a1ee5beff1f08d4b360de.zip
Changed "an macro" to "a macro" in diagnostic note.
llvm-svn: 186988
-rw-r--r--clang/include/clang/Basic/DiagnosticLexKinds.td2
-rw-r--r--clang/test/Preprocessor/macro_with_initializer_list.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/clang/include/clang/Basic/DiagnosticLexKinds.td b/clang/include/clang/Basic/DiagnosticLexKinds.td
index d7b35c92ba6..90a3d71c777 100644
--- a/clang/include/clang/Basic/DiagnosticLexKinds.td
+++ b/clang/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/clang/test/Preprocessor/macro_with_initializer_list.cpp b/clang/test/Preprocessor/macro_with_initializer_list.cpp
index 4f5bf6d1db7..74966f91304 100644
--- a/clang/test/Preprocessor/macro_with_initializer_list.cpp
+++ b/clang/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}}
}
OpenPOWER on IntegriCloud