[clang-tidy] Add bugprone-non-zero-enum-to-bool-conversion check
Detect implicit and explicit conversions of enum to bool, when enum doesn't have a enumerator with value equal to 0. In theory such conversion should always return TRUE. Reviewed By: carlosgalvezp Differential Revision: https://reviews.llvm.org/D144036
parent
4bac5f83
Please register or sign in to comment