Commit 22397f28 by Abseil Team Committed by Andy Getz

Googletest export

Add missing explicit keyword for gmock_Impl constructor. When switching to using GMOCK_PP in ACTION* macroses `explicit` keyword was missed in gmock_Impl constructor causing ClangTidy warnings in ACTION_P macro. PiperOrigin-RevId: 291159975
parent 10b1902d
...@@ -1426,7 +1426,7 @@ auto InvokeArgumentAdl(AdlTag, F f, Args... args) -> decltype(f(args...)) { ...@@ -1426,7 +1426,7 @@ auto InvokeArgumentAdl(AdlTag, F f, Args... args) -> decltype(f(args...)) {
typedef typename ::testing::internal::Function<F>::Result return_type; \ typedef typename ::testing::internal::Function<F>::Result return_type; \
typedef \ typedef \
typename ::testing::internal::Function<F>::ArgumentTuple args_type; \ typename ::testing::internal::Function<F>::ArgumentTuple args_type; \
gmock_Impl(GMOCK_ACTION_TYPE_GVALUE_PARAMS_(params)) \ explicit gmock_Impl(GMOCK_ACTION_TYPE_GVALUE_PARAMS_(params)) \
: GMOCK_ACTION_INIT_PARAMS_(params) {} \ : GMOCK_ACTION_INIT_PARAMS_(params) {} \
return_type Perform(const args_type& args) override { \ return_type Perform(const args_type& args) override { \
return ::testing::internal::ActionHelper<return_type, \ return ::testing::internal::ActionHelper<return_type, \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment