================
Comment at: include/clang/ASTMatchers/ASTMatchersInternal.h:150
@@ +149,3 @@
+ if (Predicate(Bindings[i])) {
+ Result.push_back(Bindings[i]);
+ }
----------------
It seems that you're trying to re-invent std::remove_if here ;)
If it's done for performance reasons, then I'm not sure .swap is particularly
fast for SmallVector when using in-object storage.
http://llvm-reviews.chandlerc.com/D1009
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits