[cfe-commits] r108106 - in /cfe/trunk: include/clang/Basic/DiagnosticParseKinds.td test/Lexer/block_cmt_end.c test/Parser/declarators.c

Chris Lattner sabre at nondot.org
Sun Jul 11 15:46:04 PDT 2010


Author: lattner
Date: Sun Jul 11 17:46:04 2010
New Revision: 108106

URL: http://llvm.org/viewvc/llvm-project?rev=108106&view=rev
Log:
change the 'invalid token after top level declarator' message to be
'expected ';' after top level declarator' which is much less vague.

Modified:
    cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td
    cfe/trunk/test/Lexer/block_cmt_end.c
    cfe/trunk/test/Parser/declarators.c

Modified: cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td?rev=108106&r1=108105&r2=108106&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td Sun Jul 11 17:46:04 2010
@@ -106,7 +106,7 @@
   "expected function body after function declarator">;
 def err_expected_method_body : Error<"expected method body">;
 def err_invalid_token_after_toplevel_declarator : Error<
-  "invalid token after top level declarator">;
+  "expected ';' after top level declarator">;
 def err_expected_statement : Error<"expected statement">;
 def err_expected_lparen_after : Error<"expected '(' after '%0'">;
 def err_expected_lparen_after_id : Error<"expected '(' after %0">;

Modified: cfe/trunk/test/Lexer/block_cmt_end.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Lexer/block_cmt_end.c?rev=108106&r1=108105&r2=108106&view=diff
==============================================================================
--- cfe/trunk/test/Lexer/block_cmt_end.c (original)
+++ cfe/trunk/test/Lexer/block_cmt_end.c Sun Jul 11 17:46:04 2010
@@ -17,7 +17,7 @@
 /* expected-warning {{escaped newline}} expected-warning {{backslash and newline}}  *\  
 /
 
-int bar /* expected-error {{invalid token after top level declarator}} */
+int bar /* expected-error {{expected ';' after top level declarator}} */
 
 /* xyz
 

Modified: cfe/trunk/test/Parser/declarators.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/declarators.c?rev=108106&r1=108105&r2=108106&view=diff
==============================================================================
--- cfe/trunk/test/Parser/declarators.c (original)
+++ cfe/trunk/test/Parser/declarators.c Sun Jul 11 17:46:04 2010
@@ -90,7 +90,7 @@
 
 // PR7617 - error recovery on missing ;.
 
-void test14()  // expected-error {{invalid token after top level declarator}}
+void test14()  // expected-error {{expected ';' after top level declarator}}
 
 void test14a();
 void *test14b = (void*)test14a; // Make sure test14a didn't get skipped.





More information about the cfe-commits mailing list