]> granicus.if.org Git - clang/commitdiff
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@239879 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 39a0ec825ae7c80c8af1fc1c660684d3ed74da33..3df8b949a1611d37738d218089b3b6f9eb0e074d 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 be46159f43ad414aac8d91daaad9c5145bc5a36f..389cf6dfc03c6b57d0fe4e5049aa76158c5b2ae4 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();