summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2016-08-18 12:26:17 +0000
committerAaron Ballman <aaron@aaronballman.com>2016-08-18 12:26:17 +0000
commit75de707d84d23c94d34a0379fb032dfd52024484 (patch)
tree2a0f1ad106ddfbb5cf546e2570bd730ac618547e
parent916485c765defd52c54e9e050c7845196d65aff8 (diff)
downloadbcm5719-llvm-75de707d84d23c94d34a0379fb032dfd52024484.tar.gz
bcm5719-llvm-75de707d84d23c94d34a0379fb032dfd52024484.zip
Correct the documentation for isSignedInteger() and isUnsignedInteger().
Patch by Visoiu Mistrih Francis llvm-svn: 279055
-rw-r--r--clang/docs/LibASTMatchersReference.html4
-rw-r--r--clang/include/clang/ASTMatchers/ASTMatchers.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/clang/docs/LibASTMatchersReference.html b/clang/docs/LibASTMatchersReference.html
index f97183895cb..abfa70458e8 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)".
</pre></td></tr>
@@ -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)".
</pre></td></tr>
diff --git a/clang/include/clang/ASTMatchers/ASTMatchers.h b/clang/include/clang/ASTMatchers/ASTMatchers.h
index 63ec2a4a949..fdef3bd70bb 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();
OpenPOWER on IntegriCloud