diff options
author | Jonas Toth <development@jonas-toth.eu> | 2020-01-11 19:21:03 +0100 |
---|---|---|
committer | Jonas Toth <development@jonas-toth.eu> | 2020-01-11 19:21:03 +0100 |
commit | 4c48ea68e491cb42f1b5d43ffba89f6a7f0dadc4 (patch) | |
tree | b184cd10a71042c26bb53ece21203642d5eeca43 /clang/lib/ASTMatchers/Dynamic/Registry.cpp | |
parent | 2bdf33cc4c733342fc83081bc7410ac5e9a24f55 (diff) | |
download | bcm5719-llvm-4c48ea68e491cb42f1b5d43ffba89f6a7f0dadc4.tar.gz bcm5719-llvm-4c48ea68e491cb42f1b5d43ffba89f6a7f0dadc4.zip |
[ASTMatchers] extract public matchers from const-analysis into own patch
Summary:
The analysis for const-ness of local variables required a view generally useful
matchers that are extracted into its own patch.
They are `decompositionDecl` and `forEachArgumentWithParamType`, that works
for calls through function pointers as well.
Reviewers: aaron.ballman
Reviewed By: aaron.ballman
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D72505
Diffstat (limited to 'clang/lib/ASTMatchers/Dynamic/Registry.cpp')
-rw-r--r-- | clang/lib/ASTMatchers/Dynamic/Registry.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/ASTMatchers/Dynamic/Registry.cpp b/clang/lib/ASTMatchers/Dynamic/Registry.cpp index 1c0930c5983..bfd7906559a 100644 --- a/clang/lib/ASTMatchers/Dynamic/Registry.cpp +++ b/clang/lib/ASTMatchers/Dynamic/Registry.cpp @@ -196,6 +196,7 @@ RegistryMaps::RegistryMaps() { REGISTER_MATCHER(cxxUnresolvedConstructExpr); REGISTER_MATCHER(decayedType); REGISTER_MATCHER(decl); + REGISTER_MATCHER(decompositionDecl); REGISTER_MATCHER(declCountIs); REGISTER_MATCHER(declRefExpr); REGISTER_MATCHER(declStmt); @@ -220,6 +221,7 @@ RegistryMaps::RegistryMaps() { REGISTER_MATCHER(floatLiteral); REGISTER_MATCHER(forEach); REGISTER_MATCHER(forEachArgumentWithParam); + REGISTER_MATCHER(forEachArgumentWithParamType); REGISTER_MATCHER(forEachConstructorInitializer); REGISTER_MATCHER(forEachDescendant); REGISTER_MATCHER(forEachOverridden); |