[PATCH] Adds the equalsBoundNode matcher.

Edwin Vane edwin.vane at intel.com
Wed Jun 19 08:52:22 PDT 2013



================
Comment at: include/clang/ASTMatchers/ASTMatchersInternal.h:150
@@ +149,3 @@
+      if (Predicate(Bindings[i])) {
+        Result.push_back(Bindings[i]);
+      }
----------------
Alexander Kornienko wrote:
> 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.
I was thinking of this too but can we use std::remove_if on SmallVector?


http://llvm-reviews.chandlerc.com/D1009



More information about the cfe-commits mailing list