mirror of
https://github.com/google/googletest.git
synced 2025-12-07 17:26:53 +08:00
None of these are strictly needed for correctness. A large number of them (maybe all of them?) trigger `-Wdeprecated` warnings on Clang trunk as soon as you try to use the implicitly defaulted (but deprecated) copy constructor of a class that has deleted its copy assignment operator. By declaring a deleted copy assignment operator, the old code also caused the move constructor and move assignment operator to be non-declared. This means that the old code never got move semantics -- "move-construction" would simply call the defaulted (but deprecated) copy constructor instead. With the new code, "move-construction" calls the defaulted move constructor, which I believe is what we want to happen. So this is a runtime performance optimization. Unfortunately we can't yet physically remove the definitions of these macros from gtest-port.h, because they are being used by other code internally at Google (according to zhangxy988). But no new uses should be added going forward. |
||
|---|---|---|
| .. | ||
| internal | ||
| gmock-actions.h | ||
| gmock-cardinalities.h | ||
| gmock-function-mocker.h | ||
| gmock-generated-actions.h | ||
| gmock-generated-actions.h.pump | ||
| gmock-matchers.h | ||
| gmock-more-actions.h | ||
| gmock-more-matchers.h | ||
| gmock-nice-strict.h | ||
| gmock-spec-builders.h | ||
| gmock.h | ||