From: Samuel Benzaquen Date: Tue, 22 Dec 2015 21:06:36 +0000 (+0000) Subject: [ASTMatchers] Fix typo in booleanType() doc. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2f288bcf1ad77facaf4e66574ce1761e018cd4e;p=clang [ASTMatchers] Fix typo in booleanType() doc. Fix typo in booleanType() doc and recreate the LibASTMatchersReference.html reference document. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@256284 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/LibASTMatchersReference.html b/docs/LibASTMatchersReference.html index df21be7261..48f061c60c 100644 --- a/docs/LibASTMatchersReference.html +++ b/docs/LibASTMatchersReference.html @@ -2502,6 +2502,18 @@ i is const-qualified but the qualifier is not local. +Matcher<QualType>isAnyCharacter +
Matches QualType nodes that are of character type.
+
+Given
+  void a(char);
+  void b(wchar_t);
+  void c(double);
+functionDecl(hasAnyParameter(hasType(isAnyCharacter())))
+matches "a(char)", "b(wchar_t)", but not "c(double)".
+
+ + Matcher<QualType>isConstQualified
Matches QualType nodes that are const-qualified, i.e., that
 include "top-level" const.
@@ -2742,6 +2754,16 @@ Usable as: Matcher<Type>booleanType
+
Matches type bool.
+
+Given
+ struct S { bool func(); };
+functionDecl(returns(booleanType()))
+  matches "bool func();"
+
+ + Matcher<Type>equalsBoundNodestd::string ID
Matches if a node equals a previously bound node.
 
diff --git a/include/clang/ASTMatchers/ASTMatchers.h b/include/clang/ASTMatchers/ASTMatchers.h
index 7eebe4e411..e6ba8778f2 100644
--- a/include/clang/ASTMatchers/ASTMatchers.h
+++ b/include/clang/ASTMatchers/ASTMatchers.h
@@ -3768,7 +3768,7 @@ AST_MATCHER_FUNCTION_P_OVERLOAD(internal::BindableMatcher, loc,
 /// \code
 ///  struct S { bool func(); };
 /// \endcode
-/// functionDecl(returns(boolType()))
+/// functionDecl(returns(booleanType()))
 ///   matches "bool func();"
 AST_MATCHER(Type, booleanType) {
   return Node.isBooleanType();