]> granicus.if.org Git - clang/commit
[clang] Add AST matcher for initializer list members
authorHyrum Wright <hwright@google.com>
Mon, 7 Jan 2019 14:14:36 +0000 (14:14 +0000)
committerHyrum Wright <hwright@google.com>
Mon, 7 Jan 2019 14:14:36 +0000 (14:14 +0000)
commitd21770300d16818ce8bd7c5ebbfb79ef323bc5f7
tree1547ccb728170778b588d2324f8ea651129773c2
parent1aa1a6f871aca22a9dcca8fef4fb49b41cfd3582
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@350523 91177308-0d34-0410-b5e6-96231b3b80d8
docs/LibASTMatchersReference.html
include/clang/ASTMatchers/ASTMatchers.h
lib/ASTMatchers/Dynamic/Registry.cpp
unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp