31 #ifndef GOOGLE_PROTOBUF_COMPILER_OBJECTIVEC_HELPERS_H__ 32 #define GOOGLE_PROTOBUF_COMPILER_OBJECTIVEC_HELPERS_H__ 43 namespace objectivec {
136 template<
class TDescriptor>
138 if (descriptor->options().deprecated()) {
139 string result =
"DEPRECATED_ATTRIBUTE";
141 result.insert(0,
" ");
176 const Options& generation_options,
185 void AddString(
int32 key,
const string& input_for_decode,
186 const string& desired_output);
190 static string DecodeDataForString(
const string& input_for_decode,
191 const string& desired_output);
196 typedef std::pair<int32, string> DataEntry;
197 vector<DataEntry> entries_;
204 #endif // GOOGLE_PROTOBUF_COMPILER_OBJECTIVEC_HELPERS_H__ string FieldNameCapitalized(const FieldDescriptor *field)
Definition: objectivec_helpers.cc:442
Definition: objectivec_helpers.h:181
bool IsPrimitiveType(const FieldDescriptor *field)
Definition: objectivec_helpers.cc:603
string OneofName(const OneofDescriptor *descriptor)
Definition: objectivec_helpers.cc:460
Definition: descriptor.h:801
bool IsRetainedName(const string &name)
Definition: objectivec_helpers.cc:275
string UnCamelCaseEnumShortName(const string &name)
Definition: objectivec_helpers.cc:409
Definition: objectivec_helpers.h:126
const FieldDescriptor * field
Definition: parser_unittest.cc:2279
Options()
Definition: objectivec_helpers.cc:61
string GPBGenericValueFieldName(const FieldDescriptor *field)
Definition: objectivec_helpers.cc:643
Definition: descriptor.h:136
Definition: descriptor.h:1229
string UnCamelCaseFieldName(const string &name, const FieldDescriptor *field)
Definition: objectivec_helpers.cc:476
#define GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TypeName)
Definition: macros.h:40
Definition: objectivec_helpers.h:129
const MessageOptions & options() const
ObjectiveCType
Definition: objectivec_helpers.h:122
const Descriptor * descriptor
Definition: descriptor.cc:271
string BuildFlagsString(const vector< string > &strings)
Definition: objectivec_helpers.cc:799
Definition: objectivec_helpers.h:123
bool ValidateObjCClassPrefix(const FileDescriptor *file, const Options &generation_options, string *out_error)
Definition: objectivec_helpers.cc:988
Definition: descriptor.h:1156
Definition: descriptor.h:172
size_t num_entries() const
Definition: objectivec_helpers.h:187
bool IsMapEntryMessage(const Descriptor *descriptor)
Definition: objectivec_helpers.h:115
Definition: objectivec_helpers.h:133
string ClassName(const Descriptor *descriptor)
Definition: objectivec_helpers.cc:353
string OneofEnumName(const OneofDescriptor *descriptor)
Definition: objectivec_helpers.cc:452
USVString filename
Definition: ErrorEvent.idl:46
Definition: objectivec_helpers.h:46
Definition: objectivec_helpers.h:132
Definition: descriptor.h:439
GLint location
Definition: gl2.h:455
string expected_prefixes_path
Definition: objectivec_helpers.h:48
VoEFile * file
Definition: voe_cmd_test.cc:59
int32_t int32
Definition: port.h:130
Definition: objectivec_helpers.h:131
string FileName(const FileDescriptor *file)
Definition: objectivec_helpers.cc:296
string EnumValueName(const EnumValueDescriptor *descriptor)
Definition: objectivec_helpers.cc:375
Type
Definition: descriptor.h:443
Definition: objectivec_helpers.h:125
string GetOptionalDeprecatedAttribute(const TDescriptor *descriptor, bool preSpace=true, bool postNewline=false)
Definition: objectivec_helpers.h:137
bool HasPreservingUnknownEnumSemantics(const FileDescriptor *file)
Definition: objectivec_helpers.h:111
Definition: CompareAndSwapTest.cpp:70
EGLImageKHR EGLint * name
Definition: eglext.h:851
Definition: objectivec_helpers.h:128
Definition: __init__.py:1
bool HasFieldPresence(const FileDescriptor *file)
Definition: objectivec_helpers.h:107
string StripProto(const string &filename)
Definition: objectivec_helpers.cc:267
bool IsReferenceType(const FieldDescriptor *field)
Definition: objectivec_helpers.cc:621
WireFormatLite::FieldType field_type(FieldType type)
Definition: extension_set_heavy.cc:133
result
Definition: target-blank-opener-post-window.php:5
string DefaultValue(const FieldDescriptor *field)
Definition: objectivec_helpers.cc:683
string FieldName(const FieldDescriptor *field)
Definition: objectivec_helpers.cc:427
string EnumName(const EnumDescriptor *descriptor)
Definition: objectivec_helpers.cc:361
bool HasNonZeroDefaultValue(const FieldDescriptor *field)
Definition: objectivec_helpers.cc:754
Definition: objectivec_helpers.h:130
#define LIBPROTOC_EXPORT
Definition: port.h:98
bool IsInitName(const string &name)
Definition: objectivec_helpers.cc:284
string FilePath(const FileDescriptor *file)
Definition: objectivec_helpers.cc:303
TextFormatDecodeData()
Definition: objectivec_helpers.h:183
Syntax syntax() const
Definition: descriptor.h:1899
string FileClassName(const FileDescriptor *file)
Definition: objectivec_helpers.cc:326
bool map_entry() const
Definition: descriptor.pb.h:6368
Definition: objectivec_helpers.h:124
string GetCapitalizedType(const FieldDescriptor *field)
Definition: objectivec_helpers.cc:508
Definition: gflags_completions.h:115
Definition: descriptor.h:919
ObjectiveCType GetObjectiveCType(FieldDescriptor::Type field_type)
Definition: objectivec_helpers.cc:554
string EnumValueShortName(const EnumValueDescriptor *descriptor)
Definition: objectivec_helpers.cc:390
GLsizei const GLchar ** strings
Definition: gl2ext.h:1828
CFArrayRef CFTypeRef key
Definition: AVFoundationCFSoftLinking.h:129
Definition: descriptor.h:736
Definition: objectivec_helpers.h:127
string EscapeTrigraphs(const string &to_escape)
Definition: objectivec_helpers.cc:263
string ExtensionMethodName(const FieldDescriptor *descriptor)
Definition: objectivec_helpers.cc:421
string OneofNameCapitalized(const OneofDescriptor *descriptor)
Definition: objectivec_helpers.cc:467
string BuildCommentsString(const SourceLocation &location)
Definition: objectivec_helpers.cc:813