aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/compiler/objectivec/objectivec_helpers.h
diff options
context:
space:
mode:
authorSergio Campamá <kaipi@google.com>2016-08-09 05:26:24 -0700
committerThomas Van Lenten <thomasvl@google.com>2016-08-09 08:26:24 -0400
commit237f321e338b50503eb38728afa6ad29bea6076a (patch)
tree0b6c77f4349b1fdb223c59179e286fb83d70ddc7 /src/google/protobuf/compiler/objectivec/objectivec_helpers.h
parent56b8f44eede93463f7ec4fbecd5bc7dfc8d6d648 (diff)
downloadprotobuf-237f321e338b50503eb38728afa6ad29bea6076a.tar.gz
protobuf-237f321e338b50503eb38728afa6ad29bea6076a.tar.bz2
protobuf-237f321e338b50503eb38728afa6ad29bea6076a.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.h6
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 be20beee..998c6281 100644
--- a/src/google/protobuf/compiler/objectivec/objectivec_helpers.h
+++ b/src/google/protobuf/compiler/objectivec/objectivec_helpers.h
@@ -170,8 +170,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.