llvm-project/clang/lib/ASTMatchers/Dynamic
Samuel Benzaquen ab005ed0c0 Refactor VariantMatcher::MatcherOps to reduce the amount of generated code.
Summary:
Refactor VariantMatcher::MatcherOps to reduce the amount of generated code.
 - Make some code type agnostic and move it to the cpp file.
 - Return a DynTypedMatcher instead of storing the object in MatcherOps.

This change reduces the number of symbols generated in Registry.cpp by
~19%, the object byte size by ~17% and the compilation time (in non-release mode) by ~20%.

Reviewers: klimek

Subscribers: klimek, cfe-commits

Differential Revision: http://reviews.llvm.org/D5124

llvm-svn: 217152
2014-09-04 14:13:58 +00:00
..
CMakeLists.txt [CMake] Use LINK_LIBS instead of target_link_libraries(). 2014-02-26 06:41:29 +00:00
Diagnostics.cpp Add support for named values in the parser. 2014-04-14 13:51:21 +00:00
Makefile
Marshallers.h Fix some cases where StringRef was being passed by const reference. Remove const from some other StringRefs since its implicitly const already. 2014-08-30 16:55:52 +00:00
Parser.cpp Support named values in the autocomplete feature. 2014-08-12 21:11:37 +00:00
Registry.cpp ASTMatchers: Add a matcher to detect whether a decl or stmt is inside a template instantiation. 2014-09-03 12:08:14 +00:00
VariantValue.cpp Refactor VariantMatcher::MatcherOps to reduce the amount of generated code. 2014-09-04 14:13:58 +00:00