Fixed formatting and updated gen script to use concrete version of clang-format
This commit is contained in:
parent
3f8e734535
commit
d2565bb169
|
|
@ -129,8 +129,14 @@ typedef struct _grpc_lb_v0_LoadBalanceResponse {
|
|||
}
|
||||
#define grpc_lb_v0_InitialLoadBalanceResponse_init_default \
|
||||
{ false, "", false, "", false, grpc_lb_v0_Duration_init_default }
|
||||
#define grpc_lb_v0_ServerList_init_default \
|
||||
{ {{NULL}, NULL}, false, grpc_lb_v0_Duration_init_default }
|
||||
#define grpc_lb_v0_ServerList_init_default \
|
||||
{ \
|
||||
{ \
|
||||
{ NULL } \
|
||||
, NULL \
|
||||
} \
|
||||
, false, grpc_lb_v0_Duration_init_default \
|
||||
}
|
||||
#define grpc_lb_v0_Server_init_default \
|
||||
{ false, "", false, 0, false, {0, {0}}, false, 0 }
|
||||
#define grpc_lb_v0_Duration_init_zero \
|
||||
|
|
@ -151,8 +157,14 @@ typedef struct _grpc_lb_v0_LoadBalanceResponse {
|
|||
}
|
||||
#define grpc_lb_v0_InitialLoadBalanceResponse_init_zero \
|
||||
{ false, "", false, "", false, grpc_lb_v0_Duration_init_zero }
|
||||
#define grpc_lb_v0_ServerList_init_zero \
|
||||
{ {{NULL}, NULL}, false, grpc_lb_v0_Duration_init_zero }
|
||||
#define grpc_lb_v0_ServerList_init_zero \
|
||||
{ \
|
||||
{ \
|
||||
{ NULL } \
|
||||
, NULL \
|
||||
} \
|
||||
, false, grpc_lb_v0_Duration_init_zero \
|
||||
}
|
||||
#define grpc_lb_v0_Server_init_zero \
|
||||
{ false, "", false, 0, false, {0, {0}}, false, 0 }
|
||||
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ mv $TMPFILE "$OUTPUT_DIR/$PROTO_BASENAME.pb.c"
|
|||
cat $COPYRIGHT_FILE "$OUTPUT_DIR/$PROTO_BASENAME.pb.h" > $TMPFILE
|
||||
mv $TMPFILE "$OUTPUT_DIR/$PROTO_BASENAME.pb.h"
|
||||
|
||||
clang-format -style="{BasedOnStyle: Google, Language: Cpp}" -i "$OUTPUT_DIR/$PROTO_BASENAME.pb.c"
|
||||
clang-format -style="{BasedOnStyle: Google, Language: Cpp}" -i "$OUTPUT_DIR/$PROTO_BASENAME.pb.h"
|
||||
clang-format-3.6 -style="{BasedOnStyle: Google, Language: Cpp}" -i "$OUTPUT_DIR/$PROTO_BASENAME.pb.c"
|
||||
clang-format-3.6 -style="{BasedOnStyle: Google, Language: Cpp}" -i "$OUTPUT_DIR/$PROTO_BASENAME.pb.h"
|
||||
|
||||
popd > /dev/null
|
||||
|
|
|
|||
Loading…
Reference in New Issue