diff options
author | Sergio Campamá <kaipi@google.com> | 2016-08-09 05:26:24 -0700 |
---|---|---|
committer | Jisi Liu <jisi.liu@gmail.com> | 2016-08-17 10:50:52 -0700 |
commit | a989501f47a351472526a54c6e78bfbc4c6ec950 (patch) | |
tree | 6605d1de9f88a5a823033bb2939da672f4f3a483 /src/google/protobuf/compiler/objectivec/objectivec_helpers.h | |
parent | 42ab9b444207dd7112ef9609a2c7865c0610fa38 (diff) | |
download | protobuf-a989501f47a351472526a54c6e78bfbc4c6ec950.tar.gz protobuf-a989501f47a351472526a54c6e78bfbc4c6ec950.tar.bz2 protobuf-a989501f47a351472526a54c6e78bfbc4c6ec950.zip |
Adds support for appledoc in generated code. (#1928)
Convert mapping of proto comments to appledoc format so they show up in Xcode and cocoadocs.
Fixes https://github.com/google/protobuf/issues/1866
Diffstat (limited to 'src/google/protobuf/compiler/objectivec/objectivec_helpers.h')
-rw-r--r-- | src/google/protobuf/compiler/objectivec/objectivec_helpers.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/google/protobuf/compiler/objectivec/objectivec_helpers.h b/src/google/protobuf/compiler/objectivec/objectivec_helpers.h index 7aae0fd2..c96d5ea5 100644 --- a/src/google/protobuf/compiler/objectivec/objectivec_helpers.h +++ b/src/google/protobuf/compiler/objectivec/objectivec_helpers.h @@ -172,8 +172,10 @@ bool HasNonZeroDefaultValue(const FieldDescriptor* field); string BuildFlagsString(const vector<string>& strings); -// Builds a HeaderDoc style comment out of the comments in the .proto file. -string BuildCommentsString(const SourceLocation& location); +// Builds HeaderDoc/appledoc style comments out of the comments in the .proto +// file. +string BuildCommentsString(const SourceLocation& location, + bool prefer_single_line); // The name the commonly used by the library when built as a framework. // This lines up to the name used in the CocoaPod. |