- Flag macros that define integer values
no enforcement
- Flag switch-statements where the cases cover most but not all enumerators of an enumeration.
- Flag switch-statements where the cases cover a few enumerators of an enumeration, but has no default.
clang: -Wswitch
- (Simple) Warn on any non-class enum definition.
no enforcement
- Flag repeated expressions cast back into an enumeration.
no enforcement
- Flag ALL_CAPS enumerators.
no enforcement
- Flag unnamed enumerations.
no enforcement
- Flag duplicate enumerator values
- Flag explicitly specified all-consecutive enumerator values
no enforcement