[clang][analyzer] Fix empty enum handling in EnumCastOutOfRange checker
The alpha.cplusplus.EnumCastOutOfRange checker previously gave many false positives because a warning was given if the initializer value did not appear in the enumerator list. The strict handling caused std::byte to always give a warning, as it is implemented as an enum class without any declarators. Reviewed By: donat.nagy, steakhal Differential Revision: https://reviews.llvm.org/D153954
parent
b808648a
Please register or sign in to comment