From 77f039bf58bf8d77c9defe374df86f12404779dc Mon Sep 17 00:00:00 2001 From: Malcolm Parsons Date: Thu, 8 Dec 2016 11:46:22 +0000 Subject: [ASTMatcher] Add hasReplacementType matcher for SubstTemplateTypeParmType Summary: Needed for https://reviews.llvm.org/D27166 Reviewers: sbenza, bkramer, klimek Subscribers: aemerson, cfe-commits Differential Revision: https://reviews.llvm.org/D27447 llvm-svn: 289042 --- clang/docs/LibASTMatchersReference.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'clang/docs/LibASTMatchersReference.html') diff --git a/clang/docs/LibASTMatchersReference.html b/clang/docs/LibASTMatchersReference.html index 69c58e90b3d..2a8d864c3c5 100644 --- a/clang/docs/LibASTMatchersReference.html +++ b/clang/docs/LibASTMatchersReference.html @@ -5421,6 +5421,20 @@ sizeof. +Matcher<SubstTemplateTypeParmType>hasReplacementTypeMatcher<Type> +
Matches template type parameter substitutions that have a replacement
+type that matches the provided matcher.
+
+Given
+  template <typename T>
+  double F(T t);
+  int i;
+  double j = F(i);
+
+substTemplateTypeParmType(hasReplacementType(type())) matches int
+
+ + Matcher<SwitchStmt>forEachSwitchCaseMatcher<SwitchCase> InnerMatcher
Matches each case or default statement belonging to the given switch
 statement. This matcher may produce multiple matches.
-- 
cgit v1.2.3