diff options
| author | gingerBill <bill@gingerbill.org> | 2021-02-23 15:29:54 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-02-23 15:29:54 +0000 |
| commit | 28f279329da6f31b895145b9a021bacc7d9eea45 (patch) | |
| tree | de15e143e8d585fa4f4aa0b54356aac301220b2c /src/check_expr.cpp | |
| parent | fe33a64b2ee6775275c6d1e5f1b54cf5ab0af753 (diff) | |
Remove `bit_field` keyword and parsing logic
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 42e434f85..25e5550b5 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -10175,7 +10175,6 @@ ExprKind check_expr_base_internal(CheckerContext *c, Operand *o, Ast *node, Type case Ast_MapType: case Ast_OpaqueType: case Ast_BitSetType: - case Ast_BitFieldType: o->mode = Addressing_Type; o->type = check_type(c, node); break; @@ -10594,21 +10593,6 @@ gbString write_expr_to_string(gbString str, Ast *node, bool shorthand) { str = write_expr_to_string(str, at->elem, shorthand); case_end; - case_ast_node(bf, BitFieldType, node); - str = gb_string_appendc(str, "bit_field "); - if (bf->align) { - str = gb_string_appendc(str, "#align "); - str = write_expr_to_string(str, bf->align, shorthand); - } - str = gb_string_appendc(str, "{"); - if (shorthand) { - str = gb_string_appendc(str, "..."); - } else { - str = write_struct_fields_to_string(str, bf->fields); - } - str = gb_string_appendc(str, "}"); - case_end; - case_ast_node(bs, BitSetType, node); str = gb_string_appendc(str, "bit_set["); str = write_expr_to_string(str, bs->elem, shorthand); |