[cfe-commits] r41801 - in /cfe/trunk: AST/Decl.cpp Parse/ParseObjc.cpp Sema/Sema.h Sema/SemaDecl.cpp include/clang/AST/Decl.h include/clang/Parse/Action.h include/clang/Parse/Parser.h
Chris Lattner
clattner at apple.com
Mon Sep 10 14:19:17 PDT 2007
On Sep 10, 2007, at 1:47 PM, Devang Patel wrote:
>
> On Sep 10, 2007, at 1:33 PM, Fariborz Jahanian wrote:
>
>> + /// Insert collected methods declarations into the @interface
>> object.
>> + Actions.ObjcAddMethodsToClass(interfaceDecl, &allMethods[0],
>> allMethods.size());
> ...
>> +void Sema::ObjcAddMethodsToClass(DeclTy *ClassDecl,
>> + DeclTy **allMethods, unsigned allNum) {
>
> Is there a reason to not pass SmallVector reference directly ?
Passing it like this allows the implementation in the client to not
use a smallvector: it could use a vector or a C array if it chose to.
-Chris
More information about the cfe-commits
mailing list