[cfe-commits] r59987 - /cfe/trunk/lib/Parse/Parser.cpp

Sebastian Redl sebastian.redl at getdesigned.at
Mon Nov 24 13:46:05 PST 2008


Author: cornedbee
Date: Mon Nov 24 15:45:59 2008
New Revision: 59987

URL: http://llvm.org/viewvc/llvm-project?rev=59987&view=rev
Log:
Remove an empty if and add a reminder for when we implement C++ try-catch.

Modified:
    cfe/trunk/lib/Parse/Parser.cpp

Modified: cfe/trunk/lib/Parse/Parser.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/Parser.cpp?rev=59987&r1=59986&r2=59987&view=diff

==============================================================================
--- cfe/trunk/lib/Parse/Parser.cpp (original)
+++ cfe/trunk/lib/Parse/Parser.cpp Mon Nov 24 15:45:59 2008
@@ -497,12 +497,9 @@
   if (!FTI.hasPrototype && FTI.NumArgs != 0)
     ParseKNRParamDeclarations(D);
 
-  if (getLang().CPlusPlus && Tok.is(tok::colon)) {
-    
-  }
-
   // We should have either an opening brace or, in a C++ constructor,
   // we may have a colon.
+  // FIXME: In C++, we might also find the 'try' keyword.
   if (Tok.isNot(tok::l_brace) && Tok.isNot(tok::colon)) {
     Diag(Tok, diag::err_expected_fn_body);
 





More information about the cfe-commits mailing list