[clang-tools-extra] [clang-tidy] Improved readability redundant casting with enums (PR #111424)
Julian Schmidt via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 13 11:21:41 PST 2024
=?utf-8?q?Félix-Antoine?= Constantin,
=?utf-8?q?Félix-Antoine?= Constantin,
=?utf-8?q?Félix-Antoine?= Constantin
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/111424 at github.com>
5chmidti wrote:
> > +- some people may want to control this behavior and keep the explicit cast for enums, WDYT?
>
> I can see why some people might want to explicitly cast the enum to its underlying type. I could add the option `WarnEnumCastToUnderlyingType` which could default to `true`.
That sounds good.
https://github.com/llvm/llvm-project/pull/111424
More information about the cfe-commits
mailing list