]> granicus.if.org Git - clang/commit
Refactor DynTypedMatcher into a value type class, just like Matcher<T>.
authorSamuel Benzaquen <sbenza@google.com>
Mon, 21 Oct 2013 18:40:51 +0000 (18:40 +0000)
committerSamuel Benzaquen <sbenza@google.com>
Mon, 21 Oct 2013 18:40:51 +0000 (18:40 +0000)
commit341b5df7f859e640c2ea2f35c0fff553ec55ada4
treea7c3194fb3133085ea481045d538c71494921f4d
parent7e66ed34c34efc4acba464a2e7ae10e22abdeb7f
Refactor DynTypedMatcher into a value type class, just like Matcher<T>.

Summary:
Refactor DynTypedMatcher into a value type class, just like Matcher<T>.
This simplifies its usage and removes the virtual hierarchy from Matcher<T>.
It also enables planned changes to replace MatcherInteface<T>.
Too many instantiaions of this class hierarchy has been causing Registry.cpp.o to bloat in size and number of symbols.

Reviewers: klimek

CC: cfe-commits, revane
Differential Revision: http://llvm-reviews.chandlerc.com/D1661

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193100 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/ASTMatchers/ASTMatchFinder.h
include/clang/ASTMatchers/ASTMatchersInternal.h
include/clang/ASTMatchers/Dynamic/Parser.h
include/clang/ASTMatchers/Dynamic/VariantValue.h
lib/ASTMatchers/ASTMatchFinder.cpp
lib/ASTMatchers/ASTMatchersInternal.cpp
lib/ASTMatchers/Dynamic/Marshallers.h
lib/ASTMatchers/Dynamic/Parser.cpp
lib/ASTMatchers/Dynamic/Registry.cpp
lib/ASTMatchers/Dynamic/VariantValue.cpp
unittests/ASTMatchers/Dynamic/ParserTest.cpp