[clang-tools-extra] [clang-tidy] Improved readability redundant casting with enums (PR #111424)
FĂ©lix-Antoine Constantin via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 13 06:02:29 PST 2024
felix642 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`.
https://github.com/llvm/llvm-project/pull/111424
More information about the cfe-commits
mailing list