diff options
author | Stephen Kelly <steveire@gmail.com> | 2018-10-03 20:52:57 +0000 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2018-10-03 20:52:57 +0000 |
commit | 28e3a8de46e2cec76a376f9c48813ea143af240c (patch) | |
tree | 13a23b196948375ffa2dd44ab872ab35b99023ff | |
parent | 910de65055af1d36ab1e713c4976e48be505bb0b (diff) |
Update documentation for correctness
-rw-r--r-- | clang/include/clang/ASTMatchers/ASTMatchers.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/include/clang/ASTMatchers/ASTMatchers.h b/clang/include/clang/ASTMatchers/ASTMatchers.h index 50aa63cd951..5ea326c27de 100644 --- a/clang/include/clang/ASTMatchers/ASTMatchers.h +++ b/clang/include/clang/ASTMatchers/ASTMatchers.h @@ -645,12 +645,12 @@ AST_MATCHER(FunctionDecl, isMain) { /// /// Given /// \code -/// tempalate<typename T> class A {}; -/// typedef A<int> B; +/// template<typename T> class A {}; #1 +/// template<> class A<int> {}; #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<ClassTemplateDecl>, 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<DecltypeType> AST_TYPE_TRAVERSE_MATCHER(hasUnderlyingType, getUnderlyingType, |