[ASTMatchers] add three matchers for dependent expressions
authorJonas Toth <jonas.toth@gmail.com>
Tue, 11 Sep 2018 16:09:19 +0000 (16:09 +0000)
committerJonas Toth <jonas.toth@gmail.com>
Tue, 11 Sep 2018 16:09:19 +0000 (16:09 +0000)
commit2253878a40594751eb4d9ea3dd00d3d596836bd2
tree3d42d75e9123e3c68a74f3e9680a206671f3e403
parente2da5c525ed05837c6e9e45c58738a9e8794d084
[ASTMatchers] add three matchers for dependent expressions

Summary:
The new matchers can be used to check if an expression is type-, value- or instantiation-dependent
in a templated context.
These matchers are used in a clang-tidy check and generally useful as the
problem of unresolved templates occurs more often in clang-tidy and they
provide an easy way to check for this issue.

Reviewers: aaron.ballman, alexfh, klimek

Reviewed By: aaron.ballman

Subscribers: cfe-commits

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

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