]> granicus.if.org Git - clang/commitdiff
Remove an empty if and add a reminder for when we implement C++ try-catch.
authorSebastian Redl <sebastian.redl@getdesigned.at>
Mon, 24 Nov 2008 21:45:59 +0000 (21:45 +0000)
committerSebastian Redl <sebastian.redl@getdesigned.at>
Mon, 24 Nov 2008 21:45:59 +0000 (21:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59987 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Parse/Parser.cpp

index 4e27e718f871b7efeafadeefca1c73c89490162f..f00eaeb17bcc912b7e58b0e4a02a1894924041d6 100644 (file)
@@ -497,12 +497,9 @@ Parser::DeclTy *Parser::ParseFunctionDefinition(Declarator &D) {
   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);