From 198a5838df33a9b5b7237a216d6989529515f371 Mon Sep 17 00:00:00 2001 From: Sebastian Redl Date: Mon, 24 Nov 2008 21:45:59 +0000 Subject: [PATCH] Remove an empty if and add a reminder for when we implement C++ try-catch. llvm-svn: 59987 --- clang/lib/Parse/Parser.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp index 4e27e718f871..f00eaeb17bcc 100644 --- a/clang/lib/Parse/Parser.cpp +++ b/clang/lib/Parse/Parser.cpp @@ -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);