Add cxxStdInitializerListExpr AST matcher
authorJakub Kuderski <kubakuderski@gmail.com>
Fri, 5 May 2017 21:01:12 +0000 (21:01 +0000)
committerJakub Kuderski <kubakuderski@gmail.com>
Fri, 5 May 2017 21:01:12 +0000 (21:01 +0000)
commit64b6c78e94fc923218af94538e99db239709bf78
tree5945b43b21ac87f128f5d1001e7d0fce1c296f38
parent430a335b7bc1d55a1c9d2d23936775dadf393f32
Add cxxStdInitializerListExpr AST matcher

Summary:
This adds a new ASTMatcher for CXXStdInitializerListExprs that matches C++ initializer list expressions.

The primary motivation is to use it to fix [[ https://bugs.llvm.org/show_bug.cgi?id=32896 | PR32896 ]] (review here [[ https://reviews.llvm.org/D32767 | D32767 ]]).

Reviewers: alexfh, Prazek, aaron.ballman

Reviewed By: alexfh, aaron.ballman

Subscribers: malcolm.parsons, cfe-commits, klimek

Differential Revision: https://reviews.llvm.org/D32810

llvm-svn: 302287
clang/docs/LibASTMatchersReference.html
clang/include/clang/ASTMatchers/ASTMatchers.h
clang/lib/ASTMatchers/Dynamic/Registry.cpp
clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp