[clang-tools-extra] [clang-tidy] Catch <cctype> function args in bugprone-signed-char-misuse (PR #211403)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 5 22:44:19 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
----------------
cavdarahmet wrote:
Done — shortened to two lines. The `hasArgument()` implementation detail was moved into `check()`, next to the code it actually explains.
https://github.com/llvm/llvm-project/pull/211403
More information about the cfe-commits
mailing list