[PATCH] Add support for polymorphic matchers.

Samuel Benzaquen sbenza at google.com
Tue May 14 11:18:07 PDT 2013


Hi klimek,

Moved the supported types annotations from compile asserts into the type of the Polymorphic object.
The compile assert now done within the object, and the registry can iterate over the supported types to contruct the matcher objects out of the polymorphic instance.

Also, added all currently supported matchers to the registry.
The ones that are not supported yet where added as comments with details on what it is needed to support them.

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

Files:
  include/clang/ASTMatchers/ASTMatchers.h
  include/clang/ASTMatchers/ASTMatchersInternal.h
  include/clang/ASTMatchers/ASTMatchersMacros.h
  lib/ASTMatchers/Dynamic/CMakeLists.txt
  lib/ASTMatchers/Dynamic/DynMatchers.cpp
  lib/ASTMatchers/Dynamic/DynMatchers.h
  lib/ASTMatchers/Dynamic/Marshallers.h
  lib/ASTMatchers/Dynamic/Registry.cpp
  unittests/ASTMatchers/ASTMatchersTest.cpp
  unittests/ASTMatchers/Dynamic/ParserTest.cpp
  unittests/ASTMatchers/Dynamic/RegistryTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D794.1.patch
Type: text/x-patch
Size: 44019 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130514/a9dd95f7/attachment.bin>


More information about the cfe-commits mailing list