From 3ca2470501eb5a7934aeb8b6c3e045cdf1407934 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Wed, 3 Oct 2018 20:52:57 +0000 Subject: [PATCH] Update documentation for correctness git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@343719 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/ASTMatchers/ASTMatchers.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/clang/ASTMatchers/ASTMatchers.h b/include/clang/ASTMatchers/ASTMatchers.h index 50aa63cd95..5ea326c27d 100644 --- a/include/clang/ASTMatchers/ASTMatchers.h +++ b/include/clang/ASTMatchers/ASTMatchers.h @@ -645,12 +645,12 @@ AST_MATCHER(FunctionDecl, isMain) { /// /// Given /// \code -/// tempalate class A {}; -/// typedef A B; +/// template class A {}; #1 +/// template<> class A {}; #2 /// \endcode /// 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. AST_MATCHER_P(ClassTemplateSpecializationDecl, hasSpecializedTemplate, internal::Matcher, InnerMatcher) { const ClassTemplateDecl* Decl = Node.getSpecializedTemplate(); @@ -5283,7 +5283,7 @@ AST_TYPE_TRAVERSE_MATCHER(hasDeducedType, getDeducedType, /// decltype(2.0) b = 2.0; /// \endcode /// decltypeType(hasUnderlyingType(isInteger())) -/// matches "auto a" +/// matches the type of "a" /// /// Usable as: Matcher AST_TYPE_TRAVERSE_MATCHER(hasUnderlyingType, getUnderlyingType, -- 2.40.0