diff options
author | Noah Eisen <ncteisen@google.com> | 2018-02-09 09:34:04 -0800 |
---|---|---|
committer | Noah Eisen <ncteisen@google.com> | 2018-02-09 09:34:04 -0800 |
commit | 4d20a666850b732cf1562487fb5f46ab9654105f (patch) | |
tree | 9059162d0f125e02780f506c2476d5d9bbc0eb7d /src/core/lib/json | |
parent | cddf6f838aa48c8d5c9f75cee5a8ed8abdcb25b9 (diff) |
Run clang fmt
Diffstat (limited to 'src/core/lib/json')
-rw-r--r-- | src/core/lib/json/json_reader.cc | 6 | ||||
-rw-r--r-- | src/core/lib/json/json_string.cc | 3 | ||||
-rw-r--r-- | src/core/lib/json/json_writer.cc | 6 |
3 files changed, 10 insertions, 5 deletions
diff --git a/src/core/lib/json/json_reader.cc b/src/core/lib/json/json_reader.cc index 019214a167..6dadea5006 100644 --- a/src/core/lib/json/json_reader.cc +++ b/src/core/lib/json/json_reader.cc @@ -417,8 +417,10 @@ grpc_json_reader_status grpc_json_reader_run(grpc_json_reader* reader) { } else { return GRPC_JSON_PARSE_ERROR; } - reader->unicode_char = static_cast<uint16_t>(reader->unicode_char << 4); - reader->unicode_char = static_cast<uint16_t>(reader->unicode_char | c); + reader->unicode_char = + static_cast<uint16_t>(reader->unicode_char << 4); + reader->unicode_char = + static_cast<uint16_t>(reader->unicode_char | c); switch (reader->state) { case GRPC_JSON_STATE_STRING_ESCAPE_U1: diff --git a/src/core/lib/json/json_string.cc b/src/core/lib/json/json_string.cc index dcaf11d0c9..8200900956 100644 --- a/src/core/lib/json/json_string.cc +++ b/src/core/lib/json/json_string.cc @@ -68,7 +68,8 @@ static void json_writer_output_check(void* userdata, size_t needed) { needed -= state->free_space; /* Round up by 256 bytes. */ needed = (needed + 0xff) & ~0xffU; - state->output = static_cast<char*>(gpr_realloc(state->output, state->allocated + needed)); + state->output = + static_cast<char*>(gpr_realloc(state->output, state->allocated + needed)); state->free_space += needed; state->allocated += needed; } diff --git a/src/core/lib/json/json_writer.cc b/src/core/lib/json/json_writer.cc index df49cbe4dc..6d442b8716 100644 --- a/src/core/lib/json/json_writer.cc +++ b/src/core/lib/json/json_writer.cc @@ -179,8 +179,10 @@ static void json_writer_escape_string(grpc_json_writer* writer, * That range is exactly 20 bits. */ utf32 -= 0x10000; - json_writer_escape_utf16(writer, static_cast<uint16_t>(0xd800 | (utf32 >> 10))); - json_writer_escape_utf16(writer, static_cast<uint16_t>(0xdc00 | (utf32 & 0x3ff))); + json_writer_escape_utf16(writer, + static_cast<uint16_t>(0xd800 | (utf32 >> 10))); + json_writer_escape_utf16( + writer, static_cast<uint16_t>(0xdc00 | (utf32 & 0x3ff))); } else { json_writer_escape_utf16(writer, static_cast<uint16_t>(utf32)); } |