mirror of
https://github.com/intel/llvm.git
synced 2026-02-09 01:52:26 +08:00
Correct the documentation for isSignedInteger() and isUnsignedInteger().
Patch by Visoiu Mistrih Francis llvm-svn: 279055
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user