Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 244 Bytes

README-unexpected-flag-enumerator-value.md

File metadata and controls

14 lines (11 loc) · 244 Bytes

unexpected-flag-enumerator-value

Checks enums that are used as flag, for example:

enum Foo {
    A = 0x1,
    B = 0x2,
    C = 0x4,
    D = 0x9 // Oops, typo
};

and checks whether all enumeration values are power of 2 or not.