summaryrefslogtreecommitdiff
path: root/cpp/src/slice2swift/Gen.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2019-06-14 11:41:24 +0200
committerJose <jose@zeroc.com>2019-06-14 11:41:24 +0200
commit6617607ea7b59000781a6da2d490221c42d215b4 (patch)
tree39d4a6f36e25ab20c379a10f2c2465294f9ccac3 /cpp/src/slice2swift/Gen.cpp
parentRemove sliceValues property from Swift inputStream (diff)
downloadice-6617607ea7b59000781a6da2d490221c42d215b4.tar.bz2
ice-6617607ea7b59000781a6da2d490221c42d215b4.tar.xz
ice-6617607ea7b59000781a6da2d490221c42d215b4.zip
Add doc comments to Input/Output stream extensions for enumerated types
Diffstat (limited to 'cpp/src/slice2swift/Gen.cpp')
-rw-r--r--cpp/src/slice2swift/Gen.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/slice2swift/Gen.cpp b/cpp/src/slice2swift/Gen.cpp
index e71c8ac7b83..b1bc67fa658 100644
--- a/cpp/src/slice2swift/Gen.cpp
+++ b/cpp/src/slice2swift/Gen.cpp
@@ -1021,6 +1021,7 @@ Gen::TypesVisitor::visitEnum(const EnumPtr& p)
out << eb;
out << sp;
+ out << nl << "/// An `Ice.InputStream` extension to read `" << name << "` enumerated values from the stream.";
out << nl << "public extension " << getUnqualified("Ice.InputStream", swiftModule);
out << sb;
@@ -1056,6 +1057,7 @@ Gen::TypesVisitor::visitEnum(const EnumPtr& p)
out << eb;
out << sp;
+ out << nl << "/// An `Ice.OutputStream` extension to write `" << name << "` enumerated values to the stream.";
out << nl << "public extension " << getUnqualified("Ice.OutputStream", swiftModule);
out << sb;