]> granicus.if.org Git - clang/commit
Add support for Adaptative matchers on the dynamic registry.
authorSamuel Benzaquen <sbenza@google.com>
Wed, 24 Jul 2013 14:48:01 +0000 (14:48 +0000)
committerSamuel Benzaquen <sbenza@google.com>
Wed, 24 Jul 2013 14:48:01 +0000 (14:48 +0000)
commit6de440e1989ee7932c942dcba85e862c31bf4604
tree96e8d798c86364e197d4c8ad221f0057e01adf79
parente05dc6d1b5eb12d47c8d3cb5120452ceef720568
Add support for Adaptative matchers on the dynamic registry.

Summary:
Add support for Adaptative matchers on the dynamic registry.
Each adaptative matcher is created with a function template. We instantiate the function N times, one for each possible From type and apply the techniques used on argument overloaded and polymorphic matchers to add them to the registry.

Reviewers: klimek

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187044 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/ASTMatchers/ASTMatchers.h
include/clang/ASTMatchers/ASTMatchersInternal.h
lib/ASTMatchers/Dynamic/Registry.cpp
unittests/ASTMatchers/Dynamic/RegistryTest.cpp