]> granicus.if.org Git - clang/commitdiff
Clean out some cruft I introduced when adding Sema::ClassifyName()
authorDouglas Gregor <dgregor@apple.com>
Wed, 27 Apr 2011 05:44:51 +0000 (05:44 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 27 Apr 2011 05:44:51 +0000 (05:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130295 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Parse/Parser.h
lib/Parse/ParseDecl.cpp
lib/Parse/ParseStmt.cpp

index 8ed6919208c510738e4d97970edb898da64414e5..9932bbb2ad521d4e015a97454fb4bc8b40756b19 100644 (file)
@@ -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,
index a021b84d1577e52f3a32f5398f5f35c4859c6b8d..dabb7565cb07b29373a9673c71cd1d895aa50169 100644 (file)
@@ -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);
index 28be864bdf6181520613d1b75cfaa35d40a1ad65..2ab2fcc69d74e4b629769ceea76c32e079c011c2 100644 (file)
 #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.
 //===----------------------------------------------------------------------===//