From 97155978954de71c25d6d1f7d37eaad0cee97526 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Wed, 23 Feb 2022 17:24:31 -0800 Subject: [PATCH] Fixed clang-format. --- upb/def.c | 3 ++- upbc/protoc-gen-upb.cc | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/upb/def.c b/upb/def.c index 3328c81ea5..4d47131bc6 100644 --- a/upb/def.c +++ b/upb/def.c @@ -1624,7 +1624,8 @@ static void make_layout(symtab_addctx* ctx, const upb_MessageDef* m) { /* Sort fields by number. */ if (fields) { - qsort(fields, upb_MessageDef_numfields(m), sizeof(*fields), field_number_cmp); + qsort(fields, upb_MessageDef_numfields(m), sizeof(*fields), + field_number_cmp); } assign_layout_indices(m, l, fields); } diff --git a/upbc/protoc-gen-upb.cc b/upbc/protoc-gen-upb.cc index 9cd6cd26dd..b8dd5f783b 100644 --- a/upbc/protoc-gen-upb.cc +++ b/upbc/protoc-gen-upb.cc @@ -1323,8 +1323,7 @@ int WriteEnums(const protobuf::FileDescriptor* file, Output& output) { if (!values.empty()) { values_init = EnumInit(e) + "_values"; - output("static const int32_t $0[$1] = {\n", values_init, - values.size()); + output("static const int32_t $0[$1] = {\n", values_init, values.size()); for (auto value : values) { output(" $0,\n", value); }