|
|
@ -377,7 +377,9 @@ void FileGenerator::GenerateHeader(io::Printer* printer) { |
|
|
|
"\n" |
|
|
|
"\n" |
|
|
|
"#pragma clang diagnostic pop\n" |
|
|
|
"#pragma clang diagnostic pop\n" |
|
|
|
"\n" |
|
|
|
"\n" |
|
|
|
"// @@protoc_insertion_point(global_scope)\n"); |
|
|
|
"// @@protoc_insertion_point(global_scope)\n" |
|
|
|
|
|
|
|
"\n" |
|
|
|
|
|
|
|
"// clange-format on\n"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void FileGenerator::GenerateSource(io::Printer* printer) { |
|
|
|
void FileGenerator::GenerateSource(io::Printer* printer) { |
|
|
@ -638,7 +640,9 @@ void FileGenerator::GenerateSource(io::Printer* printer) { |
|
|
|
"\n" |
|
|
|
"\n" |
|
|
|
"#pragma clang diagnostic pop\n" |
|
|
|
"#pragma clang diagnostic pop\n" |
|
|
|
"\n" |
|
|
|
"\n" |
|
|
|
"// @@protoc_insertion_point(global_scope)\n"); |
|
|
|
"// @@protoc_insertion_point(global_scope)\n" |
|
|
|
|
|
|
|
"\n" |
|
|
|
|
|
|
|
"// clange-format on\n"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Helper to print the import of the runtime support at the top of generated
|
|
|
|
// Helper to print the import of the runtime support at the top of generated
|
|
|
@ -650,6 +654,8 @@ void FileGenerator::PrintFileRuntimePreamble( |
|
|
|
printer->Print( |
|
|
|
printer->Print( |
|
|
|
"// Generated by the protocol buffer compiler. DO NOT EDIT!\n" |
|
|
|
"// Generated by the protocol buffer compiler. DO NOT EDIT!\n" |
|
|
|
"// source: $filename$\n" |
|
|
|
"// source: $filename$\n" |
|
|
|
|
|
|
|
"\n" |
|
|
|
|
|
|
|
"// clang-format off\n" |
|
|
|
"\n", |
|
|
|
"\n", |
|
|
|
"filename", file_->name()); |
|
|
|
"filename", file_->name()); |
|
|
|
|
|
|
|
|
|
|
|