r239879 - parser: wordsmith diagnostic message

Saleem Abdulrasool compnerd at compnerd.org
Tue Jun 16 20:54:21 PDT 2015


Author: compnerd
Date: Tue Jun 16 22:54:21 2015
New Revision: 239879

URL: http://llvm.org/viewvc/llvm-project?rev=239879&view=rev
Log:
parser: wordsmith diagnostic message

Address post-commit commit about the wording of the warning.

Modified:
    cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td
    cfe/trunk/test/Parser/MicrosoftExtensions.c

Modified: cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td?rev=239879&r1=239878&r2=239879&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td Tue Jun 16 22:54:21 2015
@@ -1001,7 +1001,8 @@ def warn_pragma_unroll_cuda_value_in_par
   "argument to '#pragma unroll' should not be in parentheses in CUDA C/C++">,
   InGroup<CudaCompat>;
 
-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.
 

Modified: cfe/trunk/test/Parser/MicrosoftExtensions.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/MicrosoftExtensions.c?rev=239879&r1=239878&r2=239879&view=diff
==============================================================================
--- cfe/trunk/test/Parser/MicrosoftExtensions.c (original)
+++ cfe/trunk/test/Parser/MicrosoftExtensions.c Tue Jun 16 22:54:21 2015
@@ -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();





More information about the cfe-commits mailing list