From: Douglas Gregor Date: Wed, 27 Apr 2011 05:44:51 +0000 (+0000) Subject: Clean out some cruft I introduced when adding Sema::ClassifyName() X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d0719b183ae331e0e8731c486f21392e0eb288c3;p=clang Clean out some cruft I introduced when adding Sema::ClassifyName() git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130295 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Parse/Parser.h b/include/clang/Parse/Parser.h index 8ed6919208..9932bbb2ad 100644 --- a/include/clang/Parse/Parser.h +++ b/include/clang/Parse/Parser.h @@ -1332,12 +1332,6 @@ private: ParsedAttributes &attrs, bool RequireSemi, ForRangeInit *FRI = 0); - DeclGroupPtrTy ParseSimpleDeclaration(ParsingDeclSpec &DS, - StmtVector &Stmts, - unsigned Context, - SourceLocation &DeclEnd, - bool RequireSemi, - ForRangeInit *FRI = 0); DeclGroupPtrTy ParseDeclGroup(ParsingDeclSpec &DS, unsigned Context, bool AllowFunctionDefinitions, SourceLocation *DeclEnd = 0, diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index a021b84d15..dabb7565cb 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/lib/Parse/ParseDecl.cpp @@ -724,29 +724,7 @@ Parser::DeclGroupPtrTy Parser::ParseSimpleDeclaration(StmtVector &Stmts, // Parse the common declaration-specifiers piece. ParsingDeclSpec DS(*this); DS.takeAttributesFrom(attrs); - return ParseSimpleDeclaration(DS, Stmts, Context, DeclEnd, RequireSemi, FRI); -} -/// simple-declaration: [C99 6.7: declaration] [C++ 7p1: dcl.dcl] -/// declaration-specifiers init-declarator-list[opt] ';' -///[C90/C++]init-declarator-list ';' [TODO] -/// [OMP] threadprivate-directive [TODO] -/// -/// for-range-declaration: [C++0x 6.5p1: stmt.ranged] -/// attribute-specifier-seq[opt] type-specifier-seq declarator -/// -/// If RequireSemi is false, this does not check for a ';' at the end of the -/// declaration. If it is true, it checks for and eats it. -/// -/// If FRI is non-null, we might be parsing a for-range-declaration instead -/// of a simple-declaration. If we find that we are, we also parse the -/// for-range-initializer, and place it here. -Parser::DeclGroupPtrTy Parser::ParseSimpleDeclaration(ParsingDeclSpec &DS, - StmtVector &Stmts, - unsigned Context, - SourceLocation &DeclEnd, - bool RequireSemi, - ForRangeInit *FRI) { ParseDeclarationSpecifiers(DS, ParsedTemplateInfo(), AS_none, getDeclSpecContextFromDeclaratorContext(Context)); StmtResult R = Actions.ActOnVlaStmt(DS); diff --git a/lib/Parse/ParseStmt.cpp b/lib/Parse/ParseStmt.cpp index 28be864bdf..2ab2fcc69d 100644 --- a/lib/Parse/ParseStmt.cpp +++ b/lib/Parse/ParseStmt.cpp @@ -22,10 +22,6 @@ #include "clang/Basic/SourceManager.h" using namespace clang; -static bool isColonOrRSquareBracket(const Token &Tok) { - return Tok.is(tok::colon) || Tok.is(tok::r_square); -} - //===----------------------------------------------------------------------===// // C99 6.8: Statements and Blocks. //===----------------------------------------------------------------------===//