forked from OSchip/llvm-project
Correct the documentation for isSignedInteger() and isUnsignedInteger().
Patch by Visoiu Mistrih Francis llvm-svn: 279055
This commit is contained in:
parent
916485c765
commit
75de707d84
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue