Use binary literals for bit masks
This commit is contained in:
parent
06f9891b62
commit
59ca571012
|
@ -24,21 +24,21 @@ import analysis.constructors;
|
||||||
import analysis.unused;
|
import analysis.unused;
|
||||||
import analysis.duplicate_attribute;
|
import analysis.duplicate_attribute;
|
||||||
|
|
||||||
enum AnalyzerCheck : int
|
enum AnalyzerCheck : uint
|
||||||
{
|
{
|
||||||
style_check = 0x1,
|
style_check = 0b00000000_00000001,
|
||||||
enum_array_literal_check = 0x2,
|
enum_array_literal_check = 0b00000000_00000010,
|
||||||
exception_check = 0x4,
|
exception_check = 0b00000000_00000100,
|
||||||
delete_check = 0x8,
|
delete_check = 0b00000000_00001000,
|
||||||
float_operator_check = 0x10,
|
float_operator_check = 0b00000000_00010000,
|
||||||
number_style_check = 0x20,
|
number_style_check = 0b00000000_00100000,
|
||||||
object_const_check = 0x40,
|
object_const_check = 0b00000000_01000000,
|
||||||
backwards_range_check = 0x80,
|
backwards_range_check = 0b00000000_10000000,
|
||||||
if_else_same_check = 0x100,
|
if_else_same_check = 0b00000001_00000000,
|
||||||
constructor_check = 0x200,
|
constructor_check = 0b00000010_00000000,
|
||||||
unused_variable_check = 0x400,
|
unused_variable_check = 0b00000100_00000000,
|
||||||
duplicate_attribute = 0x800,
|
duplicate_attribute = 0b00001000_00000000,
|
||||||
all = 0xFFF
|
all = 0b11111111_11111111
|
||||||
}
|
}
|
||||||
|
|
||||||
void messageFunction(string fileName, size_t line, size_t column, string message,
|
void messageFunction(string fileName, size_t line, size_t column, string message,
|
||||||
|
|
Loading…
Reference in New Issue