[ObjC] Output directive to disable clang-format on generated files.

Regenerate the WKTs accordingly.
pull/10650/head
Thomas Van Lenten 2 years ago
parent 374465f683
commit 7c64628669
  1. 4
      objectivec/GPBAny.pbobjc.h
  2. 4
      objectivec/GPBAny.pbobjc.m
  3. 4
      objectivec/GPBApi.pbobjc.h
  4. 4
      objectivec/GPBApi.pbobjc.m
  5. 4
      objectivec/GPBDuration.pbobjc.h
  6. 4
      objectivec/GPBDuration.pbobjc.m
  7. 4
      objectivec/GPBEmpty.pbobjc.h
  8. 4
      objectivec/GPBEmpty.pbobjc.m
  9. 4
      objectivec/GPBFieldMask.pbobjc.h
  10. 4
      objectivec/GPBFieldMask.pbobjc.m
  11. 4
      objectivec/GPBSourceContext.pbobjc.h
  12. 4
      objectivec/GPBSourceContext.pbobjc.m
  13. 4
      objectivec/GPBStruct.pbobjc.h
  14. 4
      objectivec/GPBStruct.pbobjc.m
  15. 4
      objectivec/GPBTimestamp.pbobjc.h
  16. 4
      objectivec/GPBTimestamp.pbobjc.m
  17. 4
      objectivec/GPBType.pbobjc.h
  18. 4
      objectivec/GPBType.pbobjc.m
  19. 4
      objectivec/GPBWrappers.pbobjc.h
  20. 4
      objectivec/GPBWrappers.pbobjc.m
  21. 10
      src/google/protobuf/compiler/objectivec/objectivec_file.cc

@ -1,6 +1,8 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/any.proto
// clang-format off
#import "GPBDescriptor.h"
#import "GPBMessage.h"
#import "GPBRootObject.h"
@ -172,3 +174,5 @@ CF_EXTERN_C_END
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
// clange-format on

@ -1,6 +1,8 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/any.proto
// clang-format off
#import "GPBProtocolBuffers_RuntimeSupport.h"
#import "GPBAny.pbobjc.h"
@ -98,3 +100,5 @@ typedef struct GPBAny__storage_ {
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
// clange-format on

@ -1,6 +1,8 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/api.proto
// clang-format off
#import "GPBDescriptor.h"
#import "GPBMessage.h"
#import "GPBRootObject.h"
@ -296,3 +298,5 @@ CF_EXTERN_C_END
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
// clange-format on

@ -1,6 +1,8 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/api.proto
// clang-format off
#import "GPBProtocolBuffers_RuntimeSupport.h"
#import "GPBApi.pbobjc.h"
@ -352,3 +354,5 @@ typedef struct GPBMixin__storage_ {
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
// clange-format on

@ -1,6 +1,8 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/duration.proto
// clang-format off
#import "GPBDescriptor.h"
#import "GPBMessage.h"
#import "GPBRootObject.h"
@ -131,3 +133,5 @@ CF_EXTERN_C_END
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
// clange-format on

@ -1,6 +1,8 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/duration.proto
// clang-format off
#import "GPBProtocolBuffers_RuntimeSupport.h"
#import "GPBDuration.pbobjc.h"
@ -93,3 +95,5 @@ typedef struct GPBDuration__storage_ {
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
// clange-format on

@ -1,6 +1,8 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/empty.proto
// clang-format off
#import "GPBDescriptor.h"
#import "GPBMessage.h"
#import "GPBRootObject.h"
@ -58,3 +60,5 @@ CF_EXTERN_C_END
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
// clange-format on

@ -1,6 +1,8 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/empty.proto
// clang-format off
#import "GPBProtocolBuffers_RuntimeSupport.h"
#import "GPBEmpty.pbobjc.h"
@ -69,3 +71,5 @@ typedef struct GPBEmpty__storage_ {
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
// clange-format on

@ -1,6 +1,8 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/field_mask.proto
// clang-format off
#import "GPBDescriptor.h"
#import "GPBMessage.h"
#import "GPBRootObject.h"
@ -259,3 +261,5 @@ CF_EXTERN_C_END
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
// clange-format on

@ -1,6 +1,8 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/field_mask.proto
// clang-format off
#import "GPBProtocolBuffers_RuntimeSupport.h"
#import "GPBFieldMask.pbobjc.h"
@ -82,3 +84,5 @@ typedef struct GPBFieldMask__storage_ {
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
// clange-format on

@ -1,6 +1,8 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/source_context.proto
// clang-format off
#import "GPBDescriptor.h"
#import "GPBMessage.h"
#import "GPBRootObject.h"
@ -63,3 +65,5 @@ CF_EXTERN_C_END
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
// clange-format on

@ -1,6 +1,8 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/source_context.proto
// clang-format off
#import "GPBProtocolBuffers_RuntimeSupport.h"
#import "GPBSourceContext.pbobjc.h"
@ -82,3 +84,5 @@ typedef struct GPBSourceContext__storage_ {
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
// clange-format on

@ -1,6 +1,8 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/struct.proto
// clang-format off
#import "GPBDescriptor.h"
#import "GPBMessage.h"
#import "GPBRootObject.h"
@ -190,3 +192,5 @@ CF_EXTERN_C_END
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
// clange-format on

@ -1,6 +1,8 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/struct.proto
// clang-format off
#import "GPBProtocolBuffers_RuntimeSupport.h"
#import "GPBStruct.pbobjc.h"
@ -295,3 +297,5 @@ typedef struct GPBListValue__storage_ {
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
// clange-format on

@ -1,6 +1,8 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/timestamp.proto
// clang-format off
#import "GPBDescriptor.h"
#import "GPBMessage.h"
#import "GPBRootObject.h"
@ -162,3 +164,5 @@ CF_EXTERN_C_END
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
// clange-format on

@ -1,6 +1,8 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/timestamp.proto
// clang-format off
#import "GPBProtocolBuffers_RuntimeSupport.h"
#import "GPBTimestamp.pbobjc.h"
@ -93,3 +95,5 @@ typedef struct GPBTimestamp__storage_ {
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
// clange-format on

@ -1,6 +1,8 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/type.proto
// clang-format off
#import "GPBDescriptor.h"
#import "GPBMessage.h"
#import "GPBRootObject.h"
@ -430,3 +432,5 @@ CF_EXTERN_C_END
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
// clange-format on

@ -1,6 +1,8 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/type.proto
// clang-format off
#import "GPBProtocolBuffers_RuntimeSupport.h"
#import "GPBType.pbobjc.h"
@ -707,3 +709,5 @@ typedef struct GPBOption__storage_ {
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
// clange-format on

@ -1,6 +1,8 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/wrappers.proto
// clang-format off
#import "GPBDescriptor.h"
#import "GPBMessage.h"
#import "GPBRootObject.h"
@ -205,3 +207,5 @@ CF_EXTERN_C_END
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
// clange-format on

@ -1,6 +1,8 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/wrappers.proto
// clang-format off
#import "GPBProtocolBuffers_RuntimeSupport.h"
#import "GPBWrappers.pbobjc.h"
@ -441,3 +443,5 @@ typedef struct GPBBytesValue__storage_ {
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
// clange-format on

@ -377,7 +377,9 @@ void FileGenerator::GenerateHeader(io::Printer* printer) {
"\n"
"#pragma clang diagnostic pop\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) {
@ -638,7 +640,9 @@ void FileGenerator::GenerateSource(io::Printer* printer) {
"\n"
"#pragma clang diagnostic pop\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
@ -650,6 +654,8 @@ void FileGenerator::PrintFileRuntimePreamble(
printer->Print(
"// Generated by the protocol buffer compiler. DO NOT EDIT!\n"
"// source: $filename$\n"
"\n"
"// clang-format off\n"
"\n",
"filename", file_->name());

Loading…
Cancel
Save