Home
last modified time | relevance | path

Searched refs:enum_val (Results 1 – 11 of 11) sorted by relevance

/external/flatbuffers/src/
Didl_gen_text.cpp54 auto enum_val = type.enum_def->ReverseLookup(static_cast<int64_t>(val)); in Print() local
55 if (enum_val) { in Print()
57 text += enum_val->name; in Print()
253 auto enum_val = fd.value.type.enum_def->ReverseLookup( in GenStruct() local
255 union_type = enum_val ? &enum_val->union_type : nullptr; in GenStruct()
Didl_parser.cpp891 auto enum_val = val.type.enum_def->ReverseLookup(enum_idx); in ParseAnyValue() local
892 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() local
1323 if (!enum_val) in ParseEnumFromString()
1326 *result |= enum_val->value; in ParseEnumFromString()
[all …]
Didl_gen_cpp.cpp659 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()
Didl_gen_general.cpp449 auto enum_val = **it; in GenEnumDefaultValue() local
450 if (enum_val.value == default_value) { in GenEnumDefaultValue()
451 result = WrapInNameSpace(*enum_def) + "." + enum_val.name; in GenEnumDefaultValue()
Didl_gen_rust.cpp574 const EnumVal &enum_val) const { in GetEnumValUse()
575 return Name(enum_def) + "::" + Name(enum_val); in GetEnumValUse()
/external/clang/test/SemaCXX/
Dcxx98-compat.cpp213 enum Enum { enum_val = 0 }; enumerator
260 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()
/external/mesa3d/src/mesa/main/
Dget_hash_generator.py166 enum_val = enum_list[enum_name].value
167 hash_val = enum_val * prime_factor
/external/flatbuffers/include/flatbuffers/
Dminireflect.h98 inline int64_t LookupEnum(int64_t enum_val, const int64_t *values, in LookupEnum() argument
100 if (!values) return enum_val; in LookupEnum()
102 if (enum_val == values[i]) return static_cast<int64_t>(i); in LookupEnum()
/external/protobuf/python/google/protobuf/
Ddescriptor.py930 EnumValueDescriptor(enum_val.name, ii, enum_val.number)
931 for ii, enum_val in enumerate(enum_proto.value)])
/external/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_image.cpp38 SpvImageOperandsMask enum_val = SpvImageOperandsBiasMask; in CheckAllImageOperandsHandled() local
44 enum_val = SpvImageOperandsLodMask; in CheckAllImageOperandsHandled()
46 switch (enum_val) { in CheckAllImageOperandsHandled()
/external/deqp-deps/SPIRV-Tools/source/val/
Dvalidate_image.cpp38 SpvImageOperandsMask enum_val = SpvImageOperandsBiasMask; in CheckAllImageOperandsHandled() local
44 enum_val = SpvImageOperandsLodMask; in CheckAllImageOperandsHandled()
46 switch (enum_val) { in CheckAllImageOperandsHandled()