[all-commits] [llvm/llvm-project] bbc570: [clang-tidy] Fix false positives on C23 enums in `...
Björn Svensson via All-commits
all-commits at lists.llvm.org
Thu Jul 24 05:45:00 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bbc570eef686cffba6c226d78588d930d619e176
https://github.com/llvm/llvm-project/commit/bbc570eef686cffba6c226d78588d930d619e176
Author: Björn Svensson <bjorn.a.svensson at est.tech>
Date: 2025-07-24 (Thu, 24 Jul 2025)
Changed paths:
M clang-tools-extra/clang-tidy/bugprone/SignedCharMisuseCheck.cpp
M clang-tools-extra/docs/ReleaseNotes.rst
A clang-tools-extra/test/clang-tidy/checkers/bugprone/signed-char-misuse-c23.c
Log Message:
-----------
[clang-tidy] Fix false positives on C23 enums in `bugprone-signed-char-misuse` (#149790)
Ignore false positives on C23 enums which allows setting the fixed
underlying type to signed char.
The AST tree for C enums includes a ImplicitCastExp
(that was matched) but this is not the case for C++ enums.
Fixes #145651
---------
Signed-off-by: Björn Svensson <bjorn.a.svensson at est.tech>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list