> hasAnyName() was added mostly for performance reasons.
Fair enough. Thanks.
On Fri, Mar 25, 2016 at 2:01 PM, Samuel Benzaquen wrote:
> On Fri, Mar 25, 2016 at 1:55 PM, Etienne Bergeron
> wrote:
>
>> etienneb added a subscriber: etienneb.
>> etienneb added a comment.
>>
>> Any plan for doing
On Fri, Mar 25, 2016 at 1:55 PM, Etienne Bergeron
wrote:
> etienneb added a subscriber: etienneb.
> etienneb added a comment.
>
> Any plan for doing the same for : hasOverloadedOperatorName ?
>
hasAnyName() was added mostly for performance reasons.
We could add the 'Any' version of hasOverloaded
etienneb added a subscriber: etienneb.
etienneb added a comment.
Any plan for doing the same for : hasOverloadedOperatorName ?
Repository:
rL LLVM
http://reviews.llvm.org/D18275
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists
This revision was automatically updated to reflect the committed changes.
Closed by commit rL264417: [ASTMatchers] Add own version of VariadicFunction.
(authored by sbenza).
Changed prior to commit:
http://reviews.llvm.org/D18275?vs=51447&id=51645#toc
Repository:
rL LLVM
http://reviews.llvm
alexfh added a comment.
Still LG.
Comment at: include/clang/ASTMatchers/ASTMatchersInternal.h:82
@@ +81,3 @@
+ ResultT operator()(ArrayRef Args) const {
+SmallVector InnerArgs;
+for (const ArgT &Arg : Args)
> On the other hand, constructing the matchers
sbenza added inline comments.
Comment at: include/clang/ASTMatchers/ASTMatchersInternal.h:80
@@ +79,3 @@
+ ResultT operator()(ArrayRef Args) const {
+std::vector InnerArgs;
+for (const ArgT &Arg : Args)
alexfh wrote:
> It's unfortunate that we need to cre
sbenza updated this revision to Diff 51447.
sbenza added a comment.
Minor fix
http://reviews.llvm.org/D18275
Files:
include/clang/ASTMatchers/ASTMatchers.h
include/clang/ASTMatchers/ASTMatchersInternal.h
lib/ASTMatchers/Dynamic/Marshallers.h
unittests/ASTMatchers/ASTMatchersTest.cpp
In
alexfh accepted this revision.
alexfh added a comment.
This revision is now accepted and ready to land.
LG
Comment at: include/clang/ASTMatchers/ASTMatchersInternal.h:80
@@ +79,3 @@
+ ResultT operator()(ArrayRef Args) const {
+std::vector InnerArgs;
+for (const ArgT &Ar
sbenza added a comment.
Alex, this is what we discussed to make `hasAnyName` take a `vector`
directly.
http://reviews.llvm.org/D18275
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
sbenza created this revision.
sbenza added a reviewer: alexfh.
sbenza added a subscriber: cfe-commits.
Herald added a subscriber: klimek.
llvm::VariadicFunction is only being used by ASTMatchers.
Having own copy here allows us to remove the other one from llvm/ADT.
Also, we can extend the API to o
10 matches
Mail list logo