diff options
author | Abseil Team <absl-team@google.com> | 2018-12-14 15:24:21 -0500 |
---|---|---|
committer | Mark Barolak <mbar@google.com> | 2018-12-17 13:53:26 -0500 |
commit | 096fb37a1976bbddde136c9db5fa88ac4332b802 (patch) | |
tree | 0c29723e933ce83110fcb586b148c1af5bda2222 /googlemock/include/gmock/gmock-generated-actions.h.pump | |
parent | b5f5c596a9915106c1ac36a3f89db4e0e49c07d1 (diff) | |
download | googletest-096fb37a1976bbddde136c9db5fa88ac4332b802.tar.gz googletest-096fb37a1976bbddde136c9db5fa88ac4332b802.tar.bz2 googletest-096fb37a1976bbddde136c9db5fa88ac4332b802.zip |
Googletest export
Replace pump'd code for DoAll with variadic templates.
PiperOrigin-RevId: 225584656
Diffstat (limited to 'googlemock/include/gmock/gmock-generated-actions.h.pump')
-rw-r--r-- | googlemock/include/gmock/gmock-generated-actions.h.pump | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/googlemock/include/gmock/gmock-generated-actions.h.pump b/googlemock/include/gmock/gmock-generated-actions.h.pump index d38b1f92..27c96efc 100644 --- a/googlemock/include/gmock/gmock-generated-actions.h.pump +++ b/googlemock/include/gmock/gmock-generated-actions.h.pump @@ -165,34 +165,6 @@ $template }; } // namespace internal - -// Creates an action that does actions a1, a2, ..., sequentially in -// each invocation. -$range i 2..n -$for i [[ -$range j 2..i -$var types = [[$for j, [[typename Action$j]]]] -$var Aas = [[$for j [[, Action$j a$j]]]] - -template <typename Action1, $types> -$range k 1..i-1 - -inline $for k [[internal::DoBothAction<Action$k, ]]Action$i$for k [[>]] - -DoAll(Action1 a1$Aas) { -$if i==2 [[ - - return internal::DoBothAction<Action1, Action2>(a1, a2); -]] $else [[ -$range j2 2..i - - return DoAll(a1, DoAll($for j2, [[a$j2]])); -]] - -} - -]] - } // namespace testing // The ACTION* family of macros can be used in a namespace scope to |