parser: wordsmith diagnostic message
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 17 Jun 2015 03:54:21 +0000 (03:54 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 17 Jun 2015 03:54:21 +0000 (03:54 +0000)
Address post-commit commit about the wording of the warning.

llvm-svn: 239879

clang/include/clang/Basic/DiagnosticParseKinds.td
clang/test/Parser/MicrosoftExtensions.c

index 39a0ec8..3df8b94 100644 (file)
@@ -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<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.
 
index be46159..389cf6d 100644 (file)
@@ -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();