summaryrefslogtreecommitdiffstats
path: root/clang/lib/ASTMatchers/Dynamic/Registry.cpp
diff options
context:
space:
mode:
authorHyrum Wright <hwright@google.com>2019-01-07 14:14:36 +0000
committerHyrum Wright <hwright@google.com>2019-01-07 14:14:36 +0000
commit2cd40c01703b20e866e5e545dfaca008fda73772 (patch)
treed0c7e2824bdea8dd51fffe0c169acb777d71d6a3 /clang/lib/ASTMatchers/Dynamic/Registry.cpp
parent9e014b6c3d9d9ff7fac3bf8072f555c270967b92 (diff)
downloadbcm5719-llvm-2cd40c01703b20e866e5e545dfaca008fda73772.tar.gz
bcm5719-llvm-2cd40c01703b20e866e5e545dfaca008fda73772.zip
[clang] Add AST matcher for initializer list members
Summary: Much like hasArg for various call expressions, this allows LibTooling users to match against a member of an initializer list. This is currently being used as part of the abseil-duration-scale clang-tidy check. Differential Revision: https://reviews.llvm.org/D56090 llvm-svn: 350523
Diffstat (limited to 'clang/lib/ASTMatchers/Dynamic/Registry.cpp')
-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 0bef326ca5e..e6e48467967 100644
--- a/clang/lib/ASTMatchers/Dynamic/Registry.cpp
+++ b/clang/lib/ASTMatchers/Dynamic/Registry.cpp
@@ -273,6 +273,7 @@ RegistryMaps::RegistryMaps() {
REGISTER_MATCHER(hasInClassInitializer);
REGISTER_MATCHER(hasIncrement);
REGISTER_MATCHER(hasIndex);
+ REGISTER_MATCHER(hasInit);
REGISTER_MATCHER(hasInitializer);
REGISTER_MATCHER(hasKeywordSelector);
REGISTER_MATCHER(hasLHS);
OpenPOWER on IntegriCloud