googletest/googlemock/include/gmock
Abseil Team a4ab0abb93 Googletest export
Mark ACTION_Pn()-generated functions as must-use-result.

This catches when a client creates an action and discards it, thinking that the action has actually been applied to something.

This will help people who make the mistake of defining, for example, both `void Use(Foo*)` and `ACTION(Use) { Use(arg); }` for later application to a Foo.  With such an overload, a client may then write `Use();`, forgetting the param and being confused why nothing happens.

This also catches when a client defines their own action in terms of an ACTION()-generated one, invokes the ACTION's builder, and then fails to invoke the resulting action, thinking it's operating on the outer action's parameters.

PiperOrigin-RevId: 330614454
2020-09-10 19:09:30 -04:00
..
internal Googletest export 2020-05-07 16:15:58 -04:00
gmock-actions.h Googletest export 2020-09-10 19:09:30 -04:00
gmock-cardinalities.h restore mistakenly removed iffs in their explicit form 2019-08-20 12:14:22 +02:00
gmock-function-mocker.h Googletest export 2020-07-05 16:25:43 -04:00
gmock-generated-actions.h Googletest export 2020-09-10 19:09:30 -04:00
gmock-generated-actions.h.pump Googletest export 2020-09-10 19:09:30 -04:00
gmock-matchers.h Merge pull request #2904 from AmatanHead:throw-matchers 2020-08-23 23:51:02 -04:00
gmock-more-matchers.h Googletest export 2020-02-07 18:20:45 -05:00
gmock-nice-strict.h Googletest export 2018-12-21 11:30:20 -05:00
gmock-spec-builders.h Fix a -Wdeprecated warning. 2020-04-23 22:22:34 -04:00
gmock.h Googletest export 2020-08-26 21:23:05 -04:00