[cfe-commits] r105013 - in /cfe/trunk: include/clang/Basic/DiagnosticParseKinds.td test/Sema/enum.c

Fariborz Jahanian fjahanian at apple.com
Fri May 28 15:43:53 PDT 2010


Author: fjahanian
Date: Fri May 28 17:43:53 2010
New Revision: 105013

URL: http://llvm.org/viewvc/llvm-project?rev=105013&view=rev
Log:
Changed text of 'empty enum' diagnostics to say so.


Modified:
    cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td
    cfe/trunk/test/Sema/enum.c

Modified: cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td?rev=105013&r1=105012&r2=105013&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td Fri May 28 17:43:53 2010
@@ -35,7 +35,7 @@
 
 def ext_empty_struct_union_enum : Extension<"use of empty %0 extension">;
 
-def error_empty_enum : Error<"use of empty union">;
+def error_empty_enum : Error<"use of empty enum">;
 def err_invalid_sign_spec : Error<"'%0' cannot be signed or unsigned">;
 def err_invalid_short_spec : Error<"'short %0' is invalid">;
 def err_invalid_long_spec : Error<"'long %0' is invalid">;

Modified: cfe/trunk/test/Sema/enum.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/enum.c?rev=105013&r1=105012&r2=105013&view=diff
==============================================================================
--- cfe/trunk/test/Sema/enum.c (original)
+++ cfe/trunk/test/Sema/enum.c Fri May 28 17:43:53 2010
@@ -51,7 +51,7 @@
 }
 
 // PR2416
-enum someenum {};  // expected-error {{use of empty union}}
+enum someenum {};  // expected-error {{use of empty enum}}
 
 // <rdar://problem/6093889>
 enum e0 { // expected-note {{previous definition is here}}





More information about the cfe-commits mailing list