From 9b8fa52ff6253a16d71b9f38f46c81dccaaed586 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Tue, 9 Oct 2018 08:24:11 +0000 Subject: [PATCH] Regenerate AST Matcher docs llvm-svn: 344022 --- clang/docs/LibASTMatchersReference.html | 36 ++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/clang/docs/LibASTMatchersReference.html b/clang/docs/LibASTMatchersReference.html index f4557ed..6d6feda 100644 --- a/clang/docs/LibASTMatchersReference.html +++ b/clang/docs/LibASTMatchersReference.html @@ -144,6 +144,23 @@ Example matches Z +Matcher<Decl>classTemplatePartialSpecializationDeclMatcher<ClassTemplatePartialSpecializationDecl>... +
Matches C++ class template partial specializations.
+
+Given
+  template<class T1, class T2, int I>
+  class A {};
+
+  template<class T, int I>
+  class A<T, T*, I> {};
+
+  template<>
+  class A<int, int, 1> {};
+classTemplatePartialSpecializationDecl()
+  matches the specialization A<T,T*,I> but not A<int,int,1>
+
+ + Matcher<Decl>classTemplateSpecializationDeclMatcher<ClassTemplateSpecializationDecl>...
Matches C++ class template specializations.
 
@@ -1165,6 +1182,12 @@ Example matches 'if (x) {}'
 
+Matcher<Stmt>imaginaryLiteralMatcher<ImaginaryLiteral>... +
Matches imaginary literals, which are based on integer and floating
+point literals e.g.: 1i, 1.0i
+
+ + Matcher<Stmt>implicitCastExprMatcher<ImplicitCastExpr>...
Matches the implicit cast nodes of Clang's AST.
 
@@ -1288,7 +1311,6 @@ Example: matches "a" in "init" method:
 - (void) init {
   a = @"hello";
 }
-}
 
@@ -5152,11 +5174,11 @@ functionDecl(hasAnyTemplateArgument(refersToType(asString("int"))))
Matches the specialized template of a specialization declaration.
 
 Given
-  tempalate<typename T> class A {};
-  typedef A<int> B;
+  template<typename T> class A {}; #1
+  template<> class A<int> {}; #2
 classTemplateSpecializationDecl(hasSpecializedTemplate(classTemplateDecl()))
-  matches 'B' with classTemplateDecl() matching the class template
-  declaration of 'A'.
+  matches '#2' with classTemplateDecl() matching the class template
+  declaration of 'A' at #1.
 
@@ -5353,7 +5375,7 @@ Given decltype(1) a = 1; decltype(2.0) b = 2.0; decltypeType(hasUnderlyingType(isInteger())) - matches "auto a" + matches the type of "a" Usable as: Matcher<DecltypeType> @@ -6580,7 +6602,7 @@ classTemplateSpecializationDecl( Given template<template <typename> class S> class X {}; - template<typename T> class Y {};" + template<typename T> class Y {}; X<Y> xi; classTemplateSpecializationDecl(hasAnyTemplateArgument( refersToTemplate(templateName()))) -- 2.7.4