[clang] [ASTMatchers][NFC] improve 'isInteger' docs to show matching of unsigned (PR #147012)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 4 00:39:04 PDT 2025
https://github.com/vbvictor created https://github.com/llvm/llvm-project/pull/147012
None
>From 5d172003421b0f45f2aeabb50f3890a3d98c8aa1 Mon Sep 17 00:00:00 2001
From: Victor Baranov <bar.victor.2002 at gmail.com>
Date: Fri, 4 Jul 2025 10:36:38 +0300
Subject: [PATCH] [ASTMatchers][NFC] improve docs of 'isInteger' to show
matching of unsigned
---
clang/include/clang/ASTMatchers/ASTMatchers.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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