From: Steve Naroff Date: Tue, 28 Aug 2007 16:31:47 +0000 (+0000) Subject: Tweak declaration... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e6526b2de501f2bbc261fd8017c92c75bd8d8f7;p=clang Tweak declaration... git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41542 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Parse/ParseDecl.cpp b/Parse/ParseDecl.cpp index 9ac5f5f891..1db426a93f 100644 --- a/Parse/ParseDecl.cpp +++ b/Parse/ParseDecl.cpp @@ -640,7 +640,7 @@ void Parser::ParseStructUnionSpecifier(DeclSpec &DS) { /// [GNU] declarator[opt] ':' constant-expression attributes[opt] /// void Parser::ParseStructDeclaration(DeclTy *TagDecl, - llvm::SmallVector &FieldDecls) { + llvm::SmallVectorImpl &FieldDecls) { // FIXME: When __extension__ is specified, disable extension diagnostics. if (Tok.getKind() == tok::kw___extension__) ConsumeToken(); diff --git a/include/clang/Parse/Parser.h b/include/clang/Parse/Parser.h index 81af83ce54..9f419526fb 100644 --- a/include/clang/Parse/Parser.h +++ b/include/clang/Parse/Parser.h @@ -376,8 +376,8 @@ private: void ParseStructUnionBody(SourceLocation StartLoc, unsigned TagType, DeclTy *TagDecl); void ParseStructDeclaration(DeclTy *TagDecl, - llvm::SmallVector &FieldDecls); - + llvm::SmallVectorImpl &FieldDecls); + bool isDeclarationSpecifier() const; bool isTypeSpecifierQualifier() const;