[cfe-commits] r39228 - /cfe/cfe/trunk/Parse/ParseDecl.cpp

sabre at cs.uiuc.edu sabre at cs.uiuc.edu
Wed Jul 11 09:41:32 PDT 2007


Author: sabre
Date: Wed Jul 11 11:41:31 2007
New Revision: 39228

URL: http://llvm.org/viewvc/llvm-project?rev=39228&view=rev
Log:
doing this makes the diagnostics too verbose for no useful gain.

Modified:
    cfe/cfe/trunk/Parse/ParseDecl.cpp

Modified: cfe/cfe/trunk/Parse/ParseDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Parse/ParseDecl.cpp?rev=39228&r1=39227&r2=39228&view=diff

==============================================================================
--- cfe/cfe/trunk/Parse/ParseDecl.cpp (original)
+++ cfe/cfe/trunk/Parse/ParseDecl.cpp Wed Jul 11 11:41:31 2007
@@ -382,7 +382,6 @@
     }
     // If the specifier combination wasn't legal, issue a diagnostic.
     if (isInvalid) {
-      // FIXME: emit a matching caret at the previous illegal spec combination.
       assert(PrevSpec && "Method did not return previous specifier!");
       if (isInvalid == 1)  // Error.
         Diag(Tok, diag::err_invalid_decl_spec_combination, PrevSpec);
@@ -742,7 +741,6 @@
     
     // If the specifier combination wasn't legal, issue a diagnostic.
     if (isInvalid) {
-      // FIXME: emit a matching caret at the previous illegal spec combination.
       assert(PrevSpec && "Method did not return previous specifier!");
       if (isInvalid == 1)  // Error.
         Diag(Tok, diag::err_invalid_decl_spec_combination, PrevSpec);





More information about the cfe-commits mailing list