[PATCH] Adding more overloads for allOf matcher

Manuel Klimek klimek at google.com
Mon Feb 11 13:13:12 PST 2013


  I'd compose the allOfs differently - but I don't feel strongly about it. LG.


================
Comment at: include/clang/ASTMatchers/ASTMatchers.h:1195
@@ +1194,3 @@
+allOf(const M1 &P1, const M2 &P2, const M3 &P3, const M4 &P4) {
+  return allOf(allOf(P1, P2), allOf(P3, P4));
+}
----------------
Any reason not to always put the next allOf as allOf(p1, allOf(p2, ..., pn))?


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

BRANCH
  allOf

ARCANIST PROJECT
  clang



More information about the cfe-commits mailing list