mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-16 19:02:23 -07:00
With -vet-style, give suggestion of separating where clauses with a comma rather than '&&'
This improves the error messages
This commit is contained in:
+1
-1
@@ -1166,7 +1166,7 @@ gb_internal void check_bit_field_type(CheckerContext *ctx, Type *bit_field_type,
|
||||
}
|
||||
}
|
||||
if (all_ones && all_booleans) {
|
||||
if (build_context.vet_flags & VetFlag_Style) {
|
||||
if (ast_file_vet_style(ctx->file)) {
|
||||
char const *msg = "This 'bit_field' is better expressed as a 'bit_set' since all of the fields are booleans, of 1-bit in size, and the backing type is an integer (-vet-style)";
|
||||
error(node, msg);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user