[cfe-commits] r41201 - in /cfe/trunk: Parse/ParseDecl.cpp include/clang/Parse/Parser.h

Chris Lattner clattner at apple.com
Mon Aug 27 20:59:50 PDT 2007


On Aug 20, 2007, at 3:28 PM, Steve Naroff wrote:
> Added Parser::ParseStructDeclaration() as a result of refactoring  
> Parser::ParseStructUnionBody().
>
> Motivation: Objective-C can now share this rule. It also makes  
> Parser::ParseStructUnionBody()
> a bit smaller/cleaner..
>
> ====================================================================== 
> ========
> --- cfe/trunk/include/clang/Parse/Parser.h (original)
> +++ cfe/trunk/include/clang/Parse/Parser.h Mon Aug 20 17:28:22 2007
> @@ -359,7 +359,9 @@
>    void ParseStructUnionSpecifier(DeclSpec &DS);
>    void ParseStructUnionBody(SourceLocation StartLoc, unsigned  
> TagType,
>                              DeclTy *TagDecl);
> -
> +  void ParseStructDeclaration(DeclTy *TagDecl,
> +     llvm::SmallVector<DeclTy*, 32> &FieldDecls);

This can be declared to take an "llvm::SmallVectorImpl<DeclTy*>", so  
that the client can decide the size of the smallvector.

-Chris



More information about the cfe-commits mailing list