summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2021-01-08 19:30:03 +0100
committerJose <jose@zeroc.com>2021-01-08 19:30:03 +0100
commit156107d20268ac08e7bdd57d06ab9843f14e7295 (patch)
treeb0303b22ab06770da2e8add940708af3755bdcf2 /cpp
parent3.7.5 Changelog updates (diff)
downloadice-156107d20268ac08e7bdd57d06ab9843f14e7295.tar.bz2
ice-156107d20268ac08e7bdd57d06ab9843f14e7295.tar.xz
ice-156107d20268ac08e7bdd57d06ab9843f14e7295.zip
Copy Slice doc comments to the generated enum type
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/slice2cs/Gen.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/slice2cs/Gen.cpp b/cpp/src/slice2cs/Gen.cpp
index 9ca57c2f71f..8f0d9d888d6 100644
--- a/cpp/src/slice2cs/Gen.cpp
+++ b/cpp/src/slice2cs/Gen.cpp
@@ -3330,6 +3330,7 @@ Slice::Gen::TypesVisitor::visitEnum(const EnumPtr& p)
_out << sp;
emitDeprecate(p, 0, _out, "type");
+ writeDocComment(p, getDeprecateReason(p, 0, "type"));
emitAttributes(p);
emitGeneratedCodeAttribute();
_out << nl << "public enum " << name;
@@ -3340,6 +3341,7 @@ Slice::Gen::TypesVisitor::visitEnum(const EnumPtr& p)
{
_out << ',';
}
+ writeDocComment(*en, "");
_out << nl << fixId((*en)->name());
if(explicitValue)
{