You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by br...@apache.org on 2011/08/24 02:28:19 UTC

svn commit: r1160943 - in /thrift/trunk/compiler/cpp/src/generate: t_oop_generator.h t_php_generator.cc

Author: bryanduxbury
Date: Wed Aug 24 00:28:18 2011
New Revision: 1160943

URL: http://svn.apache.org/viewvc?rev=1160943&view=rev
Log:
THRIFT-1281. compiler: add @generated to the docblock 

Patch: Bill Fumerola

Modified:
    thrift/trunk/compiler/cpp/src/generate/t_oop_generator.h
    thrift/trunk/compiler/cpp/src/generate/t_php_generator.cc

Modified: thrift/trunk/compiler/cpp/src/generate/t_oop_generator.h
URL: http://svn.apache.org/viewvc/thrift/trunk/compiler/cpp/src/generate/t_oop_generator.h?rev=1160943&r1=1160942&r2=1160943&view=diff
==============================================================================
--- thrift/trunk/compiler/cpp/src/generate/t_oop_generator.h (original)
+++ thrift/trunk/compiler/cpp/src/generate/t_oop_generator.h Wed Aug 24 00:28:18 2011
@@ -70,6 +70,7 @@ class t_oop_generator : public t_generat
       " * Autogenerated by Thrift Compiler (" + THRIFT_VERSION + ")\n" +
       " *\n" +
       " * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING\n" +
+      " *  @generated\n" +
       " */\n";
   }
 };

Modified: thrift/trunk/compiler/cpp/src/generate/t_php_generator.cc
URL: http://svn.apache.org/viewvc/thrift/trunk/compiler/cpp/src/generate/t_php_generator.cc?rev=1160943&r1=1160942&r2=1160943&view=diff
==============================================================================
--- thrift/trunk/compiler/cpp/src/generate/t_php_generator.cc (original)
+++ thrift/trunk/compiler/cpp/src/generate/t_php_generator.cc Wed Aug 24 00:28:18 2011
@@ -639,7 +639,8 @@ void t_php_generator::generate_php_struc
     string f_struct = program_name_+"."+(tstruct->get_name())+".php";
     string f_struct_name = package_dir_+f_struct;
     autoload_out.open(f_struct_name.c_str());
-    autoload_out << "<?php" << endl;
+    autoload_out << "<?php" << endl
+      << "/**" << endl << " *  @generated" << endl << " */" << endl;
     _generate_php_struct_definition(autoload_out, tstruct, is_exception);
     autoload_out << endl << "?>" << endl;
     autoload_out.close();
@@ -1381,7 +1382,8 @@ void t_php_generator::generate_service_c
     string f_struct = program_name_+"."+(tservice->get_name())+".client.php";
     string f_struct_name = package_dir_+f_struct;
     autoload_out.open(f_struct_name.c_str());
-    autoload_out << "<?php" << endl;
+    autoload_out << "<?php" << endl
+      << "/**" << endl << " *  @generated" << endl << " */" << endl;
     _generate_service_client(autoload_out, tservice);
     autoload_out << endl << "?>" << endl;
     autoload_out.close();