aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/compiler
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2017-12-13 14:36:29 -0800
committerGravatar Jie Luo <anandolee@gmail.com>2017-12-13 14:36:29 -0800
commit426cf6f31ed5efae703d7a1f31edc841205414e2 (patch)
treef7ead21ada137fad5dcc6501411efd140d4cd8a5 /src/google/protobuf/compiler
parenta4f68d479ad3edde6a24f733e44b65e3014b5f62 (diff)
Add auto-generated header to C# generated files (#4038)
* Add auto-generated header to C# generated files * regenerate C# protos
Diffstat (limited to 'src/google/protobuf/compiler')
-rw-r--r--src/google/protobuf/compiler/csharp/csharp_reflection_class.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/google/protobuf/compiler/csharp/csharp_reflection_class.cc b/src/google/protobuf/compiler/csharp/csharp_reflection_class.cc
index bac9aef7..5ddd616e 100644
--- a/src/google/protobuf/compiler/csharp/csharp_reflection_class.cc
+++ b/src/google/protobuf/compiler/csharp/csharp_reflection_class.cc
@@ -104,8 +104,10 @@ void ReflectionClassGenerator::Generate(io::Printer* printer) {
void ReflectionClassGenerator::WriteIntroduction(io::Printer* printer) {
printer->Print(
- "// Generated by the protocol buffer compiler. DO NOT EDIT!\n"
- "// source: $file_name$\n"
+ "// <auto-generated>\n"
+ "// Generated by the protocol buffer compiler. DO NOT EDIT!\n"
+ "// source: $file_name$\n"
+ "// </auto-generated>\n"
"#pragma warning disable 1591, 0612, 3021\n"
"#region Designer generated code\n"
"\n"