Done in r165538, thanks for reviewing! On Oct 9, 2012, at 12:17 PM, Richard Smith <[email protected]> wrote:
> On Tue, Oct 9, 2012 at 11:53 AM, Benjamin Kramer <[email protected]> wrote: > > On 09.10.2012, at 20:34, Jordan Rose <[email protected]> wrote: > > > > > On Oct 9, 2012, at 11:19 , Argyrios Kyrtzidis <[email protected]> wrote: > > > >> + SmallVector<const ObjCMethodDecl *, 8> OverDecls; > >> + Method->getOverriddenMethods(OverDecls); > >> + for (SmallVector<const ObjCMethodDecl *, 8>::iterator > >> + M = OverDecls.begin(), > >> + MEnd = OverDecls.end(); > >> + M != MEnd; ++M) > >> + Overridden.push_back(*M); > > > > :-( Yuck. Darn C++ being all type-safe. > > Overridden.append(OverDecls.begin(), OverDecls.end()) > > would be slightly less yucky. Should optimize down to a memcpy in this case. > > Likewise for the C++ virtual function case.
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
