From: Aaron Ballman Date: Thu, 18 Aug 2016 12:26:17 +0000 (+0000) Subject: Correct the documentation for isSignedInteger() and isUnsignedInteger(). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d09f35654f5b4bbbf94a97bf9156f885301d6f5;p=clang Correct the documentation for isSignedInteger() and isUnsignedInteger(). Patch by Visoiu Mistrih Francis git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@279055 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/LibASTMatchersReference.html b/docs/LibASTMatchersReference.html index f97183895c..abfa70458e 100644 --- a/docs/LibASTMatchersReference.html +++ b/docs/LibASTMatchersReference.html @@ -3006,7 +3006,7 @@ Given void a(int); void b(unsigned long); void c(double); -functionDecl(hasAnyParameter(hasType(isInteger()))) +functionDecl(hasAnyParameter(hasType(isSignedInteger()))) matches "a(int)", but not "b(unsigned long)" and "c(double)". @@ -3018,7 +3018,7 @@ Given void a(int); void b(unsigned long); void c(double); -functionDecl(hasAnyParameter(hasType(isInteger()))) +functionDecl(hasAnyParameter(hasType(isUnsignedInteger()))) matches "b(unsigned long)", but not "a(int)" and "c(double)". diff --git a/include/clang/ASTMatchers/ASTMatchers.h b/include/clang/ASTMatchers/ASTMatchers.h index 63ec2a4a94..fdef3bd70b 100644 --- a/include/clang/ASTMatchers/ASTMatchers.h +++ b/include/clang/ASTMatchers/ASTMatchers.h @@ -4161,7 +4161,7 @@ AST_MATCHER(QualType, isInteger) { /// void b(unsigned long); /// void c(double); /// \endcode -/// functionDecl(hasAnyParameter(hasType(isInteger()))) +/// functionDecl(hasAnyParameter(hasType(isUnsignedInteger()))) /// matches "b(unsigned long)", but not "a(int)" and "c(double)". AST_MATCHER(QualType, isUnsignedInteger) { return Node->isUnsignedIntegerType(); @@ -4175,7 +4175,7 @@ AST_MATCHER(QualType, isUnsignedInteger) { /// void b(unsigned long); /// void c(double); /// \endcode -/// functionDecl(hasAnyParameter(hasType(isInteger()))) +/// functionDecl(hasAnyParameter(hasType(isSignedInteger()))) /// matches "a(int)", but not "b(unsigned long)" and "c(double)". AST_MATCHER(QualType, isSignedInteger) { return Node->isSignedIntegerType();