[clang-tools-extra] [clang-tidy] Catch <cctype> function args in bugprone-signed-char-misuse (PR #211403)

Zeyi Xu via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 3 02:30:40 PDT 2026


================
@@ -125,11 +125,38 @@ void SignedCharMisuseCheck::registerMatchers(MatchFinder *Finder) {
           .bind("arraySubscript");
 
   Finder->addMatcher(STDArraySubscript, this);
+
+  // Catch signed char values passed to a <cctype>/<ctype.h> classification
----------------
zeyi2 wrote:

IMO the comment is overly verbose, could you make it more concise?

https://github.com/llvm/llvm-project/pull/211403


More information about the cfe-commits mailing list