Author: bryanduxbury
Date: Wed Jun 23 16:54:17 2010
New Revision: 957268
URL: http://svn.apache.org/viewvc?rev=957268&view=rev
Log:
THRIFT-767. rb: ruby compiler does not keep comments for enum values
This patch makes sure that we print an rdoc comment above each of the enum
values.
Modified:
incubator/thrift/trunk/compiler/cpp/src/generate/t_rb_generator.cc
Modified: incubator/thrift/trunk/compiler/cpp/src/generate/t_rb_generator.cc
URL:
http://svn.apache.org/viewvc/incubator/thrift/trunk/compiler/cpp/src/generate/t_rb_generator.cc?rev=957268&r1=957267&r2=957268&view=diff
==============================================================================
--- incubator/thrift/trunk/compiler/cpp/src/generate/t_rb_generator.cc
(original)
+++ incubator/thrift/trunk/compiler/cpp/src/generate/t_rb_generator.cc Wed Jun
23 16:54:17 2010
@@ -302,6 +302,7 @@ void t_rb_generator::generate_enum(t_enu
// agree and play nice.
string name = capitalize((*c_iter)->get_name());
+ generate_rdoc(f_types_, *c_iter);
f_types_ <<
indent() << name << " = " << value << endl;
}