diff options
author | 2018-02-09 09:34:04 -0800 | |
---|---|---|
committer | 2018-02-09 09:34:04 -0800 | |
commit | 4d20a666850b732cf1562487fb5f46ab9654105f (patch) | |
tree | 9059162d0f125e02780f506c2476d5d9bbc0eb7d /src/core/lib/transport/error_utils.cc | |
parent | cddf6f838aa48c8d5c9f75cee5a8ed8abdcb25b9 (diff) |
Run clang fmt
Diffstat (limited to 'src/core/lib/transport/error_utils.cc')
-rw-r--r-- | src/core/lib/transport/error_utils.cc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/core/lib/transport/error_utils.cc b/src/core/lib/transport/error_utils.cc index b968383eda..79d904315e 100644 --- a/src/core/lib/transport/error_utils.cc +++ b/src/core/lib/transport/error_utils.cc @@ -32,7 +32,8 @@ static grpc_error* recursively_find_error_with_field(grpc_error* error, // Otherwise, search through its children. uint8_t slot = error->first_err; while (slot != UINT8_MAX) { - grpc_linked_error* lerr = reinterpret_cast<grpc_linked_error*>(error->arena + slot); + grpc_linked_error* lerr = + reinterpret_cast<grpc_linked_error*>(error->arena + slot); grpc_error* result = recursively_find_error_with_field(lerr->err, which); if (result) return result; slot = lerr->next; @@ -65,8 +66,8 @@ void grpc_error_get_status(grpc_error* error, grpc_millis deadline, status = static_cast<grpc_status_code>(integer); } else if (grpc_error_get_int(found_error, GRPC_ERROR_INT_HTTP2_ERROR, &integer)) { - status = grpc_http2_error_to_grpc_status(static_cast<grpc_http2_error_code>(integer), - deadline); + status = grpc_http2_error_to_grpc_status( + static_cast<grpc_http2_error_code>(integer), deadline); } if (code != nullptr) *code = status; @@ -79,7 +80,8 @@ void grpc_error_get_status(grpc_error* error, grpc_millis deadline, *http_error = static_cast<grpc_http2_error_code>(integer); } else if (grpc_error_get_int(found_error, GRPC_ERROR_INT_GRPC_STATUS, &integer)) { - *http_error = grpc_status_to_http2_error(static_cast<grpc_status_code>(integer)); + *http_error = + grpc_status_to_http2_error(static_cast<grpc_status_code>(integer)); } else { *http_error = found_error == GRPC_ERROR_NONE ? GRPC_HTTP2_NO_ERROR : GRPC_HTTP2_INTERNAL_ERROR; @@ -103,7 +105,8 @@ bool grpc_error_has_clear_grpc_status(grpc_error* error) { } uint8_t slot = error->first_err; while (slot != UINT8_MAX) { - grpc_linked_error* lerr = reinterpret_cast<grpc_linked_error*>(error->arena + slot); + grpc_linked_error* lerr = + reinterpret_cast<grpc_linked_error*>(error->arena + slot); if (grpc_error_has_clear_grpc_status(lerr->err)) { return true; } |