Files
lucisv/crates/vlog_linter/tests/cases/enum_name_style.lint
T

23 lines
555 B
Plaintext

# a typedef enum without the _e or _t suffix is flagged at its name
package p;
typedef enum logic { A, B } state;
//^ 31 enum-name-style
endpackage
====
# a suffixed lower_snake_case name is quiet
package p;
typedef enum logic { A, B } state_e;
endpackage
====
# waived with the verible spelling
package p;
// verilog_lint: waive enum-name-style
typedef enum logic { A } state;
endpackage
====
# a waiver that waives nothing is reported
package p;
typedef enum logic { A } state_e; // lucisv: waive enum-name-style
//^ 37 unused-waiver
endpackage