From: Aaron Ballman Date: Thu, 18 Aug 2016 12:26:17 +0000 (+0000) Subject: Correct the documentation for isSignedInteger() and isUnsignedInteger(). X-Git-Tag: llvmorg-4.0.0-rc1~12095 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=75de707d84d23c94d34a0379fb032dfd52024484;p=platform%2Fupstream%2Fllvm.git Correct the documentation for isSignedInteger() and isUnsignedInteger(). Patch by Visoiu Mistrih Francis llvm-svn: 279055 --- diff --git a/clang/docs/LibASTMatchersReference.html b/clang/docs/LibASTMatchersReference.html index f971838..abfa704 100644 --- a/clang/docs/LibASTMatchersReference.html +++ b/clang/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/clang/include/clang/ASTMatchers/ASTMatchers.h b/clang/include/clang/ASTMatchers/ASTMatchers.h index 63ec2a4..fdef3bd 100644 --- a/clang/include/clang/ASTMatchers/ASTMatchers.h +++ b/clang/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();