Searched refs:enum_type (Results 1 - 25 of 37) sorted by relevance

12

/external/chromium/chrome/browser/sync/protocol/
H A Dproto_enum_conversions.cc14 #define ASSERT_ENUM_BOUNDS(enum_parent, enum_type, enum_min, enum_max) \
15 COMPILE_ASSERT(enum_parent::enum_type##_MIN == enum_parent::enum_min, \
16 enum_type##_MIN_not_##enum_min); \
17 COMPILE_ASSERT(enum_parent::enum_type##_MAX == enum_parent::enum_max, \
18 enum_type##_MAX_not_##enum_max);
/external/clang/test/CodeGenCXX/
H A Dvalue-init.cpp27 enum enum_type { negative_number = -1, magic_number = 42 }; enum
31 enum_type m_enum;
/external/protobuf/src/google/protobuf/compiler/cpp/
H A Dcpp_extension.cc71 type_traits_.append(ClassName(descriptor_->enum_type(), true));
73 type_traits_.append(ClassName(descriptor_->enum_type(), true));
187 "type", ClassName(descriptor_->enum_type(), true));
H A Dcpp_file.cc73 new EnumGenerator(file->enum_type(i), dllexport_decl));
319 "name", ClassName(file_->enum_type(i), false));
H A Dcpp_enum_field.cc52 (*variables)["type"] = ClassName(descriptor->enum_type(), true);
H A Dcpp_helpers.cc292 ClassName(field->enum_type(), true),
/external/protobuf/src/google/protobuf/compiler/java/
H A Djava_enum_field.cc61 (*variables)["type"] = ClassName(descriptor->enum_type());
168 return ClassName(descriptor_->enum_type());
367 return ClassName(descriptor_->enum_type());
H A Djava_extension.cc104 vars["type"] = ClassName(descriptor_->enum_type());
154 vars["type"] = ClassName(descriptor_->enum_type());
155 vars["enum_map"] = ClassName(descriptor_->enum_type()) +
H A Djava_file.cc103 if (file_->enum_type(i)->name() == classname_) {
179 EnumGenerator(file_->enum_type(i)).Generate(printer);
403 file_->enum_type(i),
H A Djava_helpers.cc324 return ClassName(field->enum_type()) + "." +
/external/protobuf/python/google/protobuf/
H A Ddescriptor.py240 for enum_type in self.enum_types:
241 enum_type.containing_type = self
312 enum_type: (EnumDescriptor) If this field contains an enum, a
374 default_value, message_type, enum_type, containing_type,
396 self.enum_type = enum_type
H A Dtext_format.py112 out.write(field.enum_type.values_by_number[value].name)
262 enum_descriptor = field.enum_type
/external/protobuf/src/google/protobuf/compiler/javamicro/
H A Djavamicro_enum_field.cc133 return ClassName(params_, descriptor_->enum_type());
327 return ClassName(params_, descriptor_->enum_type());
H A Djavamicro_file.cc128 if (file_->enum_type(i)->name() == classname_) {
184 EnumGenerator(file_->enum_type(i), params_).Generate(printer);
237 file_->enum_type(i),
H A Djavamicro_helpers.cc377 return ClassName(params, field->enum_type()) + "." +
H A Djavamicro_message.cc202 EnumGenerator(descriptor_->enum_type(i), params_).Generate(printer);
/external/protobuf/src/google/protobuf/compiler/
H A Dparser.h217 bool ParseEnumDefinition(EnumDescriptorProto* enum_type);
227 bool ParseEnumBlock(EnumDescriptorProto* enum_type);
H A Dparser.cc834 bool Parser::ParseEnumDefinition(EnumDescriptorProto* enum_type) { argument
836 RecordLocation(enum_type, DescriptorPool::ErrorCollector::NAME);
837 DO(ConsumeIdentifier(enum_type->mutable_name(), "Expected enum name."));
838 DO(ParseEnumBlock(enum_type));
842 bool Parser::ParseEnumBlock(EnumDescriptorProto* enum_type) { argument
851 if (!ParseEnumStatement(enum_type)) {
861 bool Parser::ParseEnumStatement(EnumDescriptorProto* enum_type) { argument
866 return ParseOption(enum_type->mutable_options());
868 return ParseEnumConstant(enum_type->add_value());
/external/protobuf/src/google/protobuf/
H A Ddescriptor.h192 const EnumDescriptor* enum_type(int index) const;
454 const EnumDescriptor* enum_type() const;
828 const EnumDescriptor* enum_type(int index) const;
1198 PROTOBUF_DEFINE_ARRAY_ACCESSOR(Descriptor, enum_type, const EnumDescriptor*)
1220 PROTOBUF_DEFINE_ACCESSOR(FieldDescriptor, enum_type, const EnumDescriptor*)
1277 PROTOBUF_DEFINE_ARRAY_ACCESSOR(FileDescriptor, enum_type, const EnumDescriptor*)
H A Ddescriptor.cc1350 enum_type(i)->CopyTo(proto->add_enum_type());
1374 enum_type(i)->CopyTo(proto->add_enum_type());
1420 if (!enum_type()->is_unqualified_placeholder_) {
1423 proto->mutable_type_name()->append(enum_type()->full_name());
1559 enum_type(i)->DebugString(0, &contents);
1638 enum_type(i)->DebugString(depth, contents);
1691 field_type = "." + enum_type()->full_name();
2032 void CrossLinkEnum(EnumDescriptor* enum_type,
2818 BUILD_ARRAY(proto, result, enum_type , BuildEnum , NULL);
2881 BUILD_ARRAY(proto, result, enum_type , BuildEnu
3554 CrossLinkEnum( EnumDescriptor* enum_type, const EnumDescriptorProto& proto) argument
4250 const EnumDescriptor* enum_type = option_field->enum_type(); local
[all...]
H A Ddescriptor_unittest.cc226 foo_enum_ = foo_file_->enum_type(0);
237 bar_enum_ = bar_file_->enum_type(0);
443 enum_ = foo_file_->enum_type(0);
638 EXPECT_TRUE(foo_->enum_type() == NULL);
639 EXPECT_TRUE(baz_->enum_type() == NULL);
640 EXPECT_TRUE(qux_->enum_type() == NULL);
642 EXPECT_EQ(enum_, bar_->enum_type());
877 enum_ = foo_file_->enum_type(0);
884 enum2_ = bar_file_->enum_type(0);
1209 baz_ = message_->enum_type(
1642 const EnumDescriptor* enum_type = file->enum_type(0); local
[all...]
H A Dgenerated_message_reflection.cc131 " Expected : " << field->enum_type()->full_name() << "\n"
149 if (value->type() != field->enum_type()) \
894 field->enum_type()->FindValueByNumber(value);
924 field->enum_type()->FindValueByNumber(value);
H A Dtext_format.cc420 const EnumDescriptor* enum_type = field->enum_type(); local
422 = enum_type->FindValueByName(value);
/external/protobuf/src/google/protobuf/compiler/python/
H A Dpython_generator.cc311 // TODO(falk): Also print options and fix the message_type, enum_type,
324 const EnumDescriptor& enum_descriptor = *file_->enum_type(i);
396 PrintEnum(*descriptor.enum_type(i));
560 *message_descriptor.enum_type(i));
652 // sets the message_type and enum_type of all message and enum fields to point
672 const EnumDescriptor& enum_descriptor = *descriptor.enum_type(i);
677 // Sets any necessary message_type and enum_type attributes
698 const EnumDescriptor* enum_type = field.enum_type(); local
699 if (enum_type) {
[all...]
/external/protobuf/python/google/protobuf/internal/
H A Ddescriptor_test.py80 message_type=None, enum_type=None, containing_type=None,
286 """enum_type: <

Completed in 196 milliseconds

12