summaryrefslogtreecommitdiffstats
path: root/clang/lib/ASTMatchers/Dynamic
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2016-01-18 11:20:09 +0000
committerManuel Klimek <klimek@google.com>2016-01-18 11:20:09 +0000
commitce28f9ebd355c8b7220232b5590f0117b51bd2a0 (patch)
tree8c4b4fcaf41b3afe694a0a2193d38b737d8a0dde /clang/lib/ASTMatchers/Dynamic
parent9c47e0681c662a8d5eca9af3745d095e6b5968f2 (diff)
downloadbcm5719-llvm-ce28f9ebd355c8b7220232b5590f0117b51bd2a0.tar.gz
bcm5719-llvm-ce28f9ebd355c8b7220232b5590f0117b51bd2a0.zip
Add forEachArgumentWithParam AST matcher.
The new matcher allows users to provide a matcher for both the argument of a CallExpr/CxxConstructExpr a well as the ParmVarDecl of the argument. Patch by Felix Berger. Differential Revision: http://reviews.llvm.org/D13845 llvm-svn: 258042
Diffstat (limited to 'clang/lib/ASTMatchers/Dynamic')
-rw-r--r--clang/lib/ASTMatchers/Dynamic/Registry.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/ASTMatchers/Dynamic/Registry.cpp b/clang/lib/ASTMatchers/Dynamic/Registry.cpp
index 5b1c5529aa4..9ecc4922da8 100644
--- a/clang/lib/ASTMatchers/Dynamic/Registry.cpp
+++ b/clang/lib/ASTMatchers/Dynamic/Registry.cpp
@@ -174,6 +174,7 @@ RegistryMaps::RegistryMaps() {
REGISTER_MATCHER(fieldDecl);
REGISTER_MATCHER(floatLiteral);
REGISTER_MATCHER(forEach);
+ REGISTER_MATCHER(forEachArgumentWithParam);
REGISTER_MATCHER(forEachConstructorInitializer);
REGISTER_MATCHER(forEachDescendant);
REGISTER_MATCHER(forEachSwitchCase);
OpenPOWER on IntegriCloud