From 464c1cbc3fac25ad84ce0ed79e49ae43fd3db686 Mon Sep 17 00:00:00 2001 From: Samuel Benzaquen Date: Mon, 18 Nov 2013 14:53:42 +0000 Subject: Add partial support for the hasDeclaration() matcher in the dynamic layer. Summary: Add partial support for the hasDeclaration() matcher in the dynamic layer. This matcher has some special logic to allow any type that has a getDecl() method. We do not support this right now. Reviewers: klimek CC: cfe-commits, revane Differential Revision: http://llvm-reviews.chandlerc.com/D1889 llvm-svn: 195013 --- clang/lib/ASTMatchers/Dynamic/Registry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/ASTMatchers/Dynamic') diff --git a/clang/lib/ASTMatchers/Dynamic/Registry.cpp b/clang/lib/ASTMatchers/Dynamic/Registry.cpp index 3a17038d985..70e956e6546 100644 --- a/clang/lib/ASTMatchers/Dynamic/Registry.cpp +++ b/clang/lib/ASTMatchers/Dynamic/Registry.cpp @@ -83,7 +83,6 @@ RegistryMaps::RegistryMaps() { // loc // equals // equalsNode - // hasDeclaration REGISTER_OVERLOADED_2(callee); REGISTER_OVERLOADED_2(hasPrefix); @@ -174,6 +173,7 @@ RegistryMaps::RegistryMaps() { REGISTER_MATCHER(hasCondition); REGISTER_MATCHER(hasConditionVariableStatement); REGISTER_MATCHER(hasDeclContext); + REGISTER_MATCHER(hasDeclaration); REGISTER_MATCHER(hasDeducedType); REGISTER_MATCHER(hasDescendant); REGISTER_MATCHER(hasDestinationType); -- cgit v1.2.3