THRIFT-5782 implement full deprecation support
Client: Delphi
Patch: Jens Geyer
FIX: end-of-line comments may cause uncompileable code
diff --git a/compiler/cpp/src/thrift/generate/t_delphi_generator.cc b/compiler/cpp/src/thrift/generate/t_delphi_generator.cc
index f624bb0..2a428dc 100644
--- a/compiler/cpp/src/thrift/generate/t_delphi_generator.cc
+++ b/compiler/cpp/src/thrift/generate/t_delphi_generator.cc
@@ -964,7 +964,7 @@
}
generate_delphi_doc(s_enum, *c_iter);
indent(s_enum) << normalize_name((*c_iter)->get_name()) << " = " << value;
- s_enum << render_deprecation_attribute((*c_iter)->annotations_, " // ", "");
+ s_enum << render_deprecation_attribute((*c_iter)->annotations_, " {", "}");
}
}
s_enum << '\n';
@@ -1714,7 +1714,7 @@
indent_down();
indent(out) << "end;"
- << render_deprecation_attribute(tstruct->annotations_, " // ", "")
+ << render_deprecation_attribute(tstruct->annotations_, " {", "}")
<< '\n';
if(rtti_) {
indent(out) << "{$IFNDEF TYPEINFO_WAS_ON} {$TYPEINFO OFF} {$ENDIF}" << '\n';
@@ -1912,7 +1912,7 @@
}
indent_down();
indent(s_service) << "end;"
- << render_deprecation_attribute( tservice->annotations_, " // ", "")
+ << render_deprecation_attribute( tservice->annotations_, " {", "}")
<< '\n' << '\n';
indent_down();
@@ -2231,7 +2231,7 @@
indent_down();
indent(s_service) << "end;"
- << render_deprecation_attribute( tservice->annotations_, " // ", "")
+ << render_deprecation_attribute( tservice->annotations_, " {", "}")
<< '\n' << '\n';
}
@@ -3001,7 +3001,7 @@
<< " read " << prop_name(tfield, struct_is_xception, fieldPrefix)
<< " write " << prop_name(tfield, struct_is_xception, "Set")
<< ";"
- << render_deprecation_attribute(tfield->annotations_, " // ", ";")
+ << render_deprecation_attribute(tfield->annotations_, " {", "}")
<< '\n';
}