[PATCH] Adds the equalsBoundNode matcher.

Alexander Kornienko alexfh at google.com
Wed Jun 19 08:48:36 PDT 2013



================
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



More information about the cfe-commits mailing list