Changes \#if forward_declare <forward_decl> \#else <class_imports> \#end in .h files to <forward_decl> \#if <class_imports>

pull/14837/head
Tyson Roberts 7 years ago
parent 373866da41
commit 8827bc91eb
  1. 4
      src/compiler/objective_c_plugin.cc

@ -118,8 +118,8 @@ class ObjectiveCGrpcGenerator : public grpc::protobuf::compiler::CodeGenerator {
Write(context, file_name + ".pbrpc.h",
PreprocIfNot(kForwardDeclare, imports) + "\n" +
PreprocIfNot(kProtocolOnly, system_imports) + "\n" +
PreprocIfElse(kForwardDeclare, class_declarations,
class_imports) +
class_declarations + "\n"
PreprocIfNot(kForwardDeclare, class_imports) +
"\n" + forward_declarations + "\n" + kNonNullBegin + "\n" +
protocols + "\n" + PreprocIfNot(kProtocolOnly, interfaces) +
"\n" + kNonNullEnd + "\n");

Loading…
Cancel
Save