min & max for types

This commit is contained in:
gingerBill
2018-12-27 12:12:14 +00:00
parent cc14180e9d
commit 7c982b6e10
4 changed files with 132 additions and 4 deletions
+2
View File
@@ -833,6 +833,8 @@ void check_enum_type(CheckerContext *ctx, Type *enum_type, Type *named_type, Ast
enum_type->Enum.fields = fields;
enum_type->Enum.names = make_names_field_for_struct(ctx, ctx->scope);
enum_type->Enum.min_value = min_value;
enum_type->Enum.max_value = max_value;
}