From 374c8ad7327f8874155e1e9537f4931392abffe1 Mon Sep 17 00:00:00 2001 From: ctiller <10120821+ctiller@users.noreply.github.com> Date: Tue, 25 Jun 2024 19:11:22 +0000 Subject: [PATCH] Automated change: Fix sanity tests --- src/core/lib/transport/call_filters.h | 46 ++++++++++----------- src/core/lib/transport/interception_chain.h | 2 +- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/core/lib/transport/call_filters.h b/src/core/lib/transport/call_filters.h index edeebb59fb7..1cbe428de5f 100644 --- a/src/core/lib/transport/call_filters.h +++ b/src/core/lib/transport/call_filters.h @@ -370,7 +370,7 @@ struct AddOpImpl { // void $INTERCEPTOR_NAME($VALUE_TYPE&) template + void (FilterType::Call::*impl)(typename T::element_type&)> struct AddOpImpl { static void Add(FilterType* channel_data, size_t call_offset, Layout& to) { @@ -391,8 +391,8 @@ struct AddOpImpl + void (FilterType::Call::*impl)(typename T::element_type&, + FilterType*)> struct AddOpImpl< FilterType, T, void (FilterType::Call::*)(typename T::element_type&, FilterType*), impl> { @@ -415,7 +415,7 @@ struct AddOpImpl< // $VALUE_HANDLE $INTERCEPTOR_NAME($VALUE_HANDLE, FilterType*) template + T (FilterType::Call::*impl)(T, FilterType*)> struct AddOpImpl { static void Add(FilterType* channel_data, size_t call_offset, Layout& to) { to.Add( @@ -438,7 +438,7 @@ struct AddOpImpl { // absl::Status $INTERCEPTOR_NAME($VALUE_TYPE&) template + absl::Status (FilterType::Call::*impl)(typename T::element_type&)> struct AddOpImpl { @@ -464,7 +464,7 @@ struct AddOpImpl struct AddOpImpl< FilterType, T, @@ -491,8 +491,8 @@ struct AddOpImpl< // absl::Status $INTERCEPTOR_NAME($VALUE_TYPE&, FilterType*) template + absl::Status (FilterType::Call::*impl)(typename T::element_type&, + FilterType*)> struct AddOpImpl struct AddOpImpl $INTERCEPTOR_NAME($VALUE_HANDLE, FilterType*) template (FilterType::Call::* impl)(T, FilterType*)> + absl::StatusOr (FilterType::Call::*impl)(T, FilterType*)> struct AddOpImpl (FilterType::Call::*)(T, FilterType*), impl> { @@ -576,7 +576,7 @@ struct AddOpImpl struct AddOpImpl struct AddOpImpl struct AddOpImpl struct AddOpImpl + R (FilterType::Call::*impl)(typename T::element_type&)> struct AddOpImpl< FilterType, T, R (FilterType::Call::*)(typename T::element_type&), impl, absl::enable_if_t>::value>> { @@ -740,7 +740,7 @@ struct AddOpImpl< // PROMISE_RETURNING(absl::Status) $INTERCEPTOR_NAME($VALUE_TYPE&, FilterType*) template + R (FilterType::Call::*impl)(typename T::element_type&, FilterType*)> struct AddOpImpl< FilterType, T, R (FilterType::Call::*)(typename T::element_type&, FilterType*), impl, @@ -795,7 +795,7 @@ struct AddOpImpl< // PROMISE_RETURNING(absl::StatusOr<$VALUE_HANDLE>) // $INTERCEPTOR_NAME($VALUE_HANDLE, FilterType*) template + R (FilterType::Call::*impl)(T, FilterType*)> struct AddOpImpl, PromiseResult>::value>> { @@ -1030,7 +1030,7 @@ struct StackData { template void AddFinalizer(FilterType* channel_data, size_t call_offset, - void (FilterType::Call::* p)(const grpc_call_final_info*)) { + void (FilterType::Call::*p)(const grpc_call_final_info*)) { DCHECK(p == &FilterType::Call::OnFinalize); finalizers.push_back(Finalizer{ channel_data, @@ -1044,8 +1044,8 @@ struct StackData { template void AddFinalizer(FilterType* channel_data, size_t call_offset, - void (FilterType::Call::* p)(const grpc_call_final_info*, - FilterType*)) { + void (FilterType::Call::*p)(const grpc_call_final_info*, + FilterType*)) { DCHECK(p == &FilterType::Call::OnFinalize); finalizers.push_back(Finalizer{ channel_data, @@ -1297,9 +1297,9 @@ class CallFilters { private: template (filters_detail::StackData::* layout), - void (CallState::* on_done)(), typename StackIterator> + Input(CallFilters::*input_location), + filters_detail::Layout(filters_detail::StackData::*layout), + void (CallState::*on_done)(), typename StackIterator> class Executor { public: Executor(CallFilters* filters, StackIterator stack_begin, diff --git a/src/core/lib/transport/interception_chain.h b/src/core/lib/transport/interception_chain.h index e940c501bda..d3942c6fcfc 100644 --- a/src/core/lib/transport/interception_chain.h +++ b/src/core/lib/transport/interception_chain.h @@ -105,7 +105,7 @@ class Interceptor : public UnstartedCallDestination { return Map(call_handler.PullClientInitialMetadata(), [call_handler, destination = wrapped_destination_]( ValueOrFailure metadata) mutable - -> ValueOrFailure { + -> ValueOrFailure { if (!metadata.ok()) return Failure{}; return HijackedCall(std::move(metadata.value()), std::move(destination),