[clang] 833839b - [ASTMatchers][NFC] improve 'isInteger' docs to show matching of unsigned (#147012)

via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 4 11:18:36 PDT 2025


Author: Baranov Victor
Date: 2025-07-04T21:18:32+03:00
New Revision: 833839ba65fddf2aea2d8f4687c0497eff5cd180

URL: https://github.com/llvm/llvm-project/commit/833839ba65fddf2aea2d8f4687c0497eff5cd180
DIFF: https://github.com/llvm/llvm-project/commit/833839ba65fddf2aea2d8f4687c0497eff5cd180.diff

LOG: [ASTMatchers][NFC] improve 'isInteger' docs to show matching of unsigned (#147012)

Added: 
    

Modified: 
    clang/include/clang/ASTMatchers/ASTMatchers.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/ASTMatchers/ASTMatchers.h b/clang/include/clang/ASTMatchers/ASTMatchers.h
index e4d605d165324..bae004896c11f 100644
--- a/clang/include/clang/ASTMatchers/ASTMatchers.h
+++ b/clang/include/clang/ASTMatchers/ASTMatchers.h
@@ -6519,11 +6519,11 @@ AST_POLYMORPHIC_MATCHER(
 /// Given
 /// \code
 ///   void a(int);
-///   void b(long);
+///   void b(unsigned long);
 ///   void c(double);
 /// \endcode
 /// functionDecl(hasAnyParameter(hasType(isInteger())))
-/// matches "a(int)", "b(long)", but not "c(double)".
+/// matches "a(int)", "b(unsigned long)", but not "c(double)".
 AST_MATCHER(QualType, isInteger) {
     return Node->isIntegerType();
 }


        


More information about the cfe-commits mailing list