From: Saleem Abdulrasool Date: Wed, 17 Jun 2015 03:54:21 +0000 (+0000) Subject: parser: wordsmith diagnostic message X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b2d445e534e946360ab4ae9fb322ef6e3024ca4;p=clang parser: wordsmith diagnostic message Address post-commit commit about the wording of the warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@239879 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/DiagnosticParseKinds.td b/include/clang/Basic/DiagnosticParseKinds.td index 39a0ec825a..3df8b949a1 100644 --- a/include/clang/Basic/DiagnosticParseKinds.td +++ b/include/clang/Basic/DiagnosticParseKinds.td @@ -1001,7 +1001,8 @@ def warn_pragma_unroll_cuda_value_in_parens : Warning< "argument to '#pragma unroll' should not be in parentheses in CUDA C/C++">, InGroup; -def err_empty_attribute_block : Error<"empty attribute block is not allowed">; +def err_empty_attribute_block : Error< + "Microsoft attribute block cannot be empty">; } // end of Parse Issue category. diff --git a/test/Parser/MicrosoftExtensions.c b/test/Parser/MicrosoftExtensions.c index be46159f43..389cf6dfc0 100644 --- a/test/Parser/MicrosoftExtensions.c +++ b/test/Parser/MicrosoftExtensions.c @@ -55,7 +55,7 @@ int foo1([SA_Post(attr=1)] void *param); [unbalanced(attribute) /* expected-note {{to match this '['}} */ void f(void); /* expected-error {{expected ']'}} */ -[] __interface I {}; /* expected-error {{empty attribute block is not allowed}} */ +[] __interface I {}; /* expected-error {{Microsoft attribute block cannot be empty}} */ void ms_intrinsics(int a) { __noop();