+}
+
+bool psi_decl_enum_item_validate(struct psi_data *data,
+ struct psi_decl_enum *enm, struct psi_decl_enum_item *item, size_t seq)
+{
+ if (!item->num) {
+ if (seq) {
+ item->inc.type = PSI_T_INT64;
+ item->inc.data.ival.i64 = 1;
+ item->inc.op = PSI_T_PLUS;
+ item->inc.operand = item->prev->num ? : &item->prev->inc;
+ item->num = &item->inc;
+ } else {
+ item->inc.type = PSI_T_INT64;
+ item->inc.data.ival.i64 = 0;
+ item->num = &item->inc;
+ }
+ }
+
+ if (!psi_num_exp_validate(data, item->num, NULL, NULL, NULL, NULL, enm)) {
+ return false;