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
This commit is contained in:
parent
10b1902d89
commit
22397f28ef
@ -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, \
|
||||||
|
Loading…
Reference in New Issue
Block a user