diff options
author | gzuykov <gzuykov@yandex-team.ru> | 2020-04-09 16:31:15 +0300 |
---|---|---|
committer | Jens Geyer <jensg@apache.org> | 2020-04-09 21:41:57 +0200 |
commit | f44b6ee8db9342d804c6ba01da9953e791021bfe (patch) | |
tree | bb34ad35322453b2cdab61e557d0b92e3e5e8885 /compiler | |
parent | 23aabcc1b196dc443a974e168ed5826d06fed945 (diff) | |
download | thrift-f44b6ee8db9342d804c6ba01da9953e791021bfe.tar.gz |
Modify autogenerated message for Go to standard to match the expectations of some tools
Client: Go
Patch: gzuykov
This closes #2096
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/cpp/src/thrift/generate/t_go_generator.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/cpp/src/thrift/generate/t_go_generator.cc b/compiler/cpp/src/thrift/generate/t_go_generator.cc index a5d55d7b1..4f8715159 100644 --- a/compiler/cpp/src/thrift/generate/t_go_generator.cc +++ b/compiler/cpp/src/thrift/generate/t_go_generator.cc @@ -888,13 +888,13 @@ string t_go_generator::render_fastbinary_includes() { } /** - * Autogen'd comment + * Autogen'd comment. The different text is necessary due to + * https://github.com/golang/go/issues/13560#issuecomment-288457920 */ string t_go_generator::go_autogen_comment() { return std::string() + - "// Autogenerated by Thrift Compiler (" + THRIFT_VERSION + ")\n" - "// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING\n\n"; + "// Code generated by Thrift Compiler (" + THRIFT_VERSION + "). DO NOT EDIT.\n\n"; } /** |