llvm-project/llvm/utils/unittest/googlemock
Evgeny Mandrikov c94eb0f9ef Fix compilation of Google Test in C++20 mode
Without this patch when using CMAKE_CXX_STANDARD=20
and MSVC 19.30.30705.0 compilation of unit tests
fails with

llvm\utils\unittest\googlemock\include\gmock/gmock-actions.h(828): error C2039: 'result_of': is not a member of 'std'

Patch is taken from Google Test:
61f010d703

Do not use std::result_of as it was removed in C++20.

Differential Revision: https://reviews.llvm.org/D115163
2021-12-06 18:07:25 +01:00
..
include/gmock Fix compilation of Google Test in C++20 mode 2021-12-06 18:07:25 +01:00
src Bump googletest to 1.10.0 2021-05-14 19:16:31 +02:00
LICENSE.txt
README.LLVM Document updated googletest + modifications 2021-05-14 19:26:12 +02:00

README.LLVM

LLVM notes
----------

This directory contains the 'googlemock' component of Google Test 1.10.0, with
all elements removed except for the actual source code, to minimize the
addition to the LLVM distribution.

Cleaned up as follows:

# Remove all the unnecessary files and directories
$ rm -f CMakeLists.txt configure* Makefile* CHANGES CONTRIBUTORS README README.md .gitignore
$ rm -rf build-aux make msvc scripts test docs
$ rm -f `find . -name \*\.pump`
$ rm -f src/gmock_main.cc

# Put the license in the consistent place for LLVM.
$ mv LICENSE LICENSE.TXT

Modified as follows:
* Support for std::begin/std::end in gmock-matchers.h
* IWYU pragmas
* Disabled -Wdeprecated-copy for clang