diff options
author | Abseil Team <absl-team@google.com> | 2020-01-23 10:06:23 -0500 |
---|---|---|
committer | Andy Getz <durandal@google.com> | 2020-02-07 13:33:47 -0500 |
commit | 22397f28ef576daf9f3dbfac381bdfdf3be58a86 (patch) | |
tree | 309a457bbcc00aa9abbf33d96d3bf78cf1a68f57 /googlemock/include/gmock | |
parent | 10b1902d893ea8cc43c69541d70868f91af3646b (diff) | |
download | googletest-22397f28ef576daf9f3dbfac381bdfdf3be58a86.tar.gz googletest-22397f28ef576daf9f3dbfac381bdfdf3be58a86.tar.bz2 googletest-22397f28ef576daf9f3dbfac381bdfdf3be58a86.zip |
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
Diffstat (limited to 'googlemock/include/gmock')
-rw-r--r-- | googlemock/include/gmock/gmock-actions.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/googlemock/include/gmock/gmock-actions.h b/googlemock/include/gmock/gmock-actions.h index 88011798..e46bcaa7 100644 --- a/googlemock/include/gmock/gmock-actions.h +++ b/googlemock/include/gmock/gmock-actions.h @@ -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>::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) {} \ return_type Perform(const args_type& args) override { \ return ::testing::internal::ActionHelper<return_type, \ |