From 0fa8ff7fd44b127c3e2e4de6bca8d334f3a0a162 Mon Sep 17 00:00:00 2001 From: Bryan Duxbury Date: Wed, 24 Aug 2011 00:28:18 +0000 Subject: [PATCH] THRIFT-1281. compiler: add @generated to the docblock Patch: Bill Fumerola git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1160943 13f79535-47bb-0310-9956-ffa450edef68 --- compiler/cpp/src/generate/t_oop_generator.h | 1 + compiler/cpp/src/generate/t_php_generator.cc | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/compiler/cpp/src/generate/t_oop_generator.h b/compiler/cpp/src/generate/t_oop_generator.h index 5530af101..20b73b232 100644 --- a/compiler/cpp/src/generate/t_oop_generator.h +++ b/compiler/cpp/src/generate/t_oop_generator.h @@ -70,6 +70,7 @@ class t_oop_generator : public t_generator { " * 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"; } }; diff --git a/compiler/cpp/src/generate/t_php_generator.cc b/compiler/cpp/src/generate/t_php_generator.cc index 414cffc53..2ca1d6f06 100644 --- a/compiler/cpp/src/generate/t_php_generator.cc +++ b/compiler/cpp/src/generate/t_php_generator.cc @@ -639,7 +639,8 @@ void t_php_generator::generate_php_struct_definition(ofstream& out, 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 << "" << endl; autoload_out.close(); @@ -1381,7 +1382,8 @@ void t_php_generator::generate_service_client(t_service* tservice) { 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 << "" << endl; autoload_out.close();