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

22 lines
581 B
Plaintext

# a typedef struct without the _t suffix is flagged at its name
package p;
typedef struct packed { logic a; } addr;
//^ 38 struct-union-name-style
endpackage
====
# a _t-suffixed union name is quiet
package p;
typedef union packed { logic a; } addr_t;
endpackage
====
# waived on the same line
package p;
typedef struct packed { logic a; } addr; // lucisv: waive struct-union-name-style
endpackage
====
# a waiver that waives nothing is reported
package p;
typedef struct packed { logic a; } addr_t; // lucisv: waive struct-union-name-style
//^ 46 unused-waiver
endpackage