From a989501f47a351472526a54c6e78bfbc4c6ec950 Mon Sep 17 00:00:00 2001 From: Sergio Campamá Date: Tue, 9 Aug 2016 05:26:24 -0700 Subject: 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 --- objectivec/Tests/unittest_objc.proto | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'objectivec/Tests/unittest_objc.proto') diff --git a/objectivec/Tests/unittest_objc.proto b/objectivec/Tests/unittest_objc.proto index 914945eb..e5577faf 100644 --- a/objectivec/Tests/unittest_objc.proto +++ b/objectivec/Tests/unittest_objc.proto @@ -34,6 +34,15 @@ import "google/protobuf/unittest.proto"; package protobuf_unittest; +// Used to check that Headerdocs and appledoc work correctly. If these comments +// are not handled correctly, Xcode will fail to build the tests. +message TestGeneratedComments { + // This is a string that could contain stuff like + // mime types as image/* or */plain. Maybe twitter usernames + // like @protobuf, @google or @something. + optional string string_field = 1; +} + // Using the messages in unittest.proto, setup for recursive cases for testing // extensions at various depths. extend TestAllExtensions { -- cgit v1.2.3