Searched refs:enum_val (Results 1 – 11 of 11) sorted by relevance
54 auto enum_val = type.enum_def->ReverseLookup(static_cast<int64_t>(val)); in Print() local55 if (enum_val) { in Print()57 text += enum_val->name; in Print()253 auto enum_val = fd.value.type.enum_def->ReverseLookup( in GenStruct() local255 union_type = enum_val ? &enum_val->union_type : nullptr; in GenStruct()
891 auto enum_val = val.type.enum_def->ReverseLookup(enum_idx); in ParseAnyValue() local892 if (!enum_val) return Error("illegal type id for: " + field->name); in ParseAnyValue()893 if (enum_val->union_type.base_type == BASE_TYPE_STRUCT) { in ParseAnyValue()894 ECHECK(ParseTable(*enum_val->union_type.struct_def, &val.constant, in ParseAnyValue()896 if (enum_val->union_type.struct_def->fixed) { in ParseAnyValue()898 SerializeStruct(*enum_val->union_type.struct_def, val); in ParseAnyValue()902 } else if (enum_val->union_type.base_type == BASE_TYPE_STRING) { in ParseAnyValue()1322 auto enum_val = type.enum_def->vals.Lookup(word); in ParseEnumFromString() local1323 if (!enum_val) in ParseEnumFromString()1326 *result |= enum_val->value; in ParseEnumFromString()[all …]
659 const std::string &enum_val) const { in GenEnumValDecl()661 return opts.prefixed_enums ? Name(enum_def) + "_" + enum_val : enum_val; in GenEnumValDecl()665 const EnumVal &enum_val) const { in GetEnumValUse()668 return Name(enum_def) + "::" + Name(enum_val); in GetEnumValUse()670 return Name(enum_def) + "_" + Name(enum_val); in GetEnumValUse()672 return Name(enum_val); in GetEnumValUse()
449 auto enum_val = **it; in GenEnumDefaultValue() local450 if (enum_val.value == default_value) { in GenEnumDefaultValue()451 result = WrapInNameSpace(*enum_def) + "." + enum_val.name; in GenEnumDefaultValue()
574 const EnumVal &enum_val) const { in GetEnumValUse()575 return Name(enum_def) + "::" + Name(enum_val); in GetEnumValUse()
213 enum Enum { enum_val = 0 }; enumerator260 int EnumNNS = Enum::enum_val; // expected-warning {{enumeration type in nested name specifier is in…262 …int k = T::enum_val; // expected-warning {{enumeration type in nested name specifier is incompatib… in EnumNNSFn()
166 enum_val = enum_list[enum_name].value167 hash_val = enum_val * prime_factor
98 inline int64_t LookupEnum(int64_t enum_val, const int64_t *values, in LookupEnum() argument100 if (!values) return enum_val; in LookupEnum()102 if (enum_val == values[i]) return static_cast<int64_t>(i); in LookupEnum()
930 EnumValueDescriptor(enum_val.name, ii, enum_val.number)931 for ii, enum_val in enumerate(enum_proto.value)])
38 SpvImageOperandsMask enum_val = SpvImageOperandsBiasMask; in CheckAllImageOperandsHandled() local44 enum_val = SpvImageOperandsLodMask; in CheckAllImageOperandsHandled()46 switch (enum_val) { in CheckAllImageOperandsHandled()