[clang] [Clang] Remove redundant check for scoped enums in shift operators (PR #152865)

via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 9 12:54:46 PDT 2025


https://github.com/Sirraide commented:

Yeah, I think this is fine because we don’t treat scoped enums as integer types, but we don’t seem to have any tests for this, so could you add some to make sure that we *do* reject shifts where one (or both) operands are scoped enums (in C and C++).

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


More information about the cfe-commits mailing list