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
This commit is contained in:
Bryan Duxbury 2011-08-24 00:28:18 +00:00
parent bce6fadf3b
commit 0fa8ff7fd4
2 changed files with 5 additions and 2 deletions

View File

@ -70,6 +70,7 @@ class t_oop_generator : public t_generator {
" * Autogenerated by Thrift Compiler (" + THRIFT_VERSION + ")\n" + " * Autogenerated by Thrift Compiler (" + THRIFT_VERSION + ")\n" +
" *\n" + " *\n" +
" * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING\n" + " * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING\n" +
" * @generated\n" +
" */\n"; " */\n";
} }
}; };

View File

@ -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 = program_name_+"."+(tstruct->get_name())+".php";
string f_struct_name = package_dir_+f_struct; string f_struct_name = package_dir_+f_struct;
autoload_out.open(f_struct_name.c_str()); 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); _generate_php_struct_definition(autoload_out, tstruct, is_exception);
autoload_out << endl << "?>" << endl; autoload_out << endl << "?>" << endl;
autoload_out.close(); 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 = program_name_+"."+(tservice->get_name())+".client.php";
string f_struct_name = package_dir_+f_struct; string f_struct_name = package_dir_+f_struct;
autoload_out.open(f_struct_name.c_str()); 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); _generate_service_client(autoload_out, tservice);
autoload_out << endl << "?>" << endl; autoload_out << endl << "?>" << endl;
autoload_out.close(); autoload_out.close();