[PATCH] Refactor DynTypedMatcher into a value type class, just like Matcher<T>.

Manuel Klimek klimek at google.com
Wed Oct 9 17:51:07 PDT 2013


  Nice! I like that much more...


================
Comment at: include/clang/ASTMatchers/ASTMatchersInternal.h:400
@@ +399,3 @@
+
+  template <typename T> class MatcherStateImpl : public MatcherState {
+  public:
----------------
I'd probably call that DynamicMatcherState...

================
Comment at: include/clang/ASTMatchers/ASTMatchersInternal.h:387
@@ +386,3 @@
+private:
+  class MatcherState : public RefCountedBaseVPTR {
+  public:
----------------
I'd probably call it MatcherStorage or something, as it's supposed to store the matcher?

State always sounds like it would store something during a match...


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



More information about the cfe-commits mailing list