summaryrefslogtreecommitdiffstats
path: root/googletest/include/gtest/internal/gtest-port.h
Commit message (Collapse)AuthorAgeFilesLines
* remove BiggestIntrefs/pull/2453/headKrystian Kuzniarek2019-10-241-14/+0
|
* Merge pull request #2398 from kuzkry:custom-type-traits-iterator_traitsGennadiy Civil2019-08-291-21/+0
|\ | | | | | | PiperOrigin-RevId: 266136896
| * remove a custom implementation of std::iterator_traitsKrystian Kuzniarek2019-08-131-21/+0
| |
* | Googletest exportkuzkry2019-08-231-9/+2
| | | | | | | | | | | | | | | | | | Merge b8ca465e73ac0954a0c9eec2a84bdd8913d5763b into 90a443f9c2437ca8a682a1ac625eba64e1d74a8a Closes #2396 COPYBARA_INTEGRATE_REVIEW=https://github.com/google/googletest/pull/2396 from kuzkry:custom-type-traits-true/false_type-and-bool_constant b8ca465e73ac0954a0c9eec2a84bdd8913d5763b PiperOrigin-RevId: 265064856
* | Merge pull request #2401 from kuzkry:custom-type-traits-add_lvalue_referenceXiaoyi Zhang2019-08-231-13/+0
|\ \ | | | | | | | | | PiperOrigin-RevId: 264842713
| * | remove a custom implementation of std::add_lvalue_referencerefs/pull/2401/headKrystian Kuzniarek2019-08-131-13/+0
| |/
* | remove custom implementations of std::is_samerefs/pull/2399/headKrystian Kuzniarek2019-08-141-16/+0
|/
* fix typosrefs/pull/2356/headKrystian Kuzniarek2019-07-301-12/+12
|
* Sort Haiku platform definition alphabetically.refs/pull/2230/headCalvin Hill2019-04-121-2/+2
| | | | | Fixes a minor ordering issue when defining the platform macro. Also fixes a minor typo: 'Max OS X' -> 'Mac OS X'.
* Merge pull request #2229 from return:haiku-supportGennadiy Civil2019-04-111-12/+14
|\ | | | | | | PiperOrigin-RevId: 243104604
| * Add Haiku platform support.refs/pull/2229/headCalvin Hill2019-04-111-3/+5
|/ | | | | This allows googletest to recognize the Haiku operating system when running tests in other projects.
* Googletest exportAbseil Team2019-04-011-0/+12
| | | | | | | | | | | | | | | Add HWASan annotations. These mirror existing ASan annotations. HWASan uses memory (address) tagging to detect memory errors: https://clang.llvm.org/docs/HardwareAssistedAddressSanitizerDesign.html It inserts a random tag in the MSB of heap and stack allocation addresses. This tag dominates pointer comparison in StackGrowsDown(), making the result non-deterministic, and entirely unrelated to the actual stack growth direction. The function attribute disables this behavior. The annotations in gtest-printers are there because the printers are used to basically dump memory. The sanitizers may have ideas why this memory should not be accessed, and that is counter productive. In particular, the test may access only part of an array, but in case of a test failure gtest will dump the entire array which may contain uninitialized bytes - that's what SANITIZE_MEMORY annotation is for. There are similar reasons for ADDRESS and THREAD annotations. HWADDRESS in its current implementation can not cause issues there, I believe, but it falls under the same umbrella of tools whose checking should not apply to test printers because it is not the code under test. PiperOrigin-RevId: 241379822
* Googletest exportAbseil Team2019-04-011-50/+1
| | | | | | | | Remove support for "global" ::string and ::wstring types. This support existed for legacy codebases that existed from before namespaces where a thing. It is no longer necessary. PiperOrigin-RevId: 241335738
* Googletest exportAbseil Team2019-03-011-0/+9
| | | | | | | | | | | | | | Let embedders customize GTEST_INTERNAL_DEPRECATED(). GTEST_INTERNAL_DEPRECATED is currently used to nudge googletest users to migrate off old TEST_CASE macros to the new TEST_SUITE macros. This move is non-trivial for Chromium (see https://crbug.com/925652), and might be difficult for other big projects with many dependencies. This CL facilitates moving off of deprecated APIs by making it possible for an embedder to define GTEST_INTERNAL_DEPRECATED() in gtest/internal/custom/gtest-port.h. Example usage: 1) #define GTEST_INTERNAL_DEPRECATED() to nothing, to disable deprecation warnings while migrating off googletest's deprecated APIs. This can be preferable to having to disable all deprecation warnings (-Wno-error=deprecated or -Wno-deprecated-declarations). 2) #define GTEST_INTERNAL_DEPRECATED() for an unsupported compiler. PiperOrigin-RevId: 236171043
* Import `patch-bsd-defines` from FreeBSD ports [1]Enji Cooper2019-02-131-3/+8
| | | | | | | | | | As noted in the patch description: * Add DragonFly and GNU/kFreeBSD support. * Implement GetThreadCount() for BSDs. 1. https://svnweb.freebsd.org/ports/head/devel/googletest/files/patch-bsd-defines?revision=488934 Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
* Googletest exportmisterg2019-02-041-0/+16
| | | | | | Mark legacy _TEST_CASE_ macros as deprecated PiperOrigin-RevId: 232303251
* Googletest exportmisterg2019-01-031-0/+1
| | | | | | TestCase->TestSuite refactoring PiperOrigin-RevId: 227702164
* Googletest exportmisterg2019-01-021-13/+0
| | | | | | Internal Change PiperOrigin-RevId: 227575279
* Googletest exportAbseil Team2019-01-021-41/+6
| | | | | | | | Remove the #ifs for old, unsupported and buggy compilers: * old versions of GCC & MSVC * Symbian PiperOrigin-RevId: 227116941
* Googletest exportAbseil Team2018-12-201-113/+8
| | | | | | Unifdef c++11-related macros from googletest now that it requires C++11. PiperOrigin-RevId: 225905601
* Googletest exportmisterg2018-12-131-1/+1
| | | | | | Internal Change PiperOrigin-RevId: 225231727
* Merge pull request #1997 from gpakosz:GTEST_IS_THREADSAFEGennadiy Civil2018-12-051-5/+9
|\ | | | | | | PiperOrigin-RevId: 224054240
| * Do not define GTEST_IS_THREADSAFE within GTEST_HAS_SEHrefs/pull/1997/headGregory Pakosz2018-12-041-5/+9
|/
* Googletest exportAbseil Team2018-12-031-2/+2
| | | | | | Applied fixes for ClangTidy modernize-use-override and modernize-use-using. PiperOrigin-RevId: 223800219
* Googletest exportmisterg2018-11-201-1/+1
| | | | | | Internal Change PiperOrigin-RevId: 222123106
* Define GTEST_DISABLE_MSC_WARNINGS_PUSH/POP for all compilersRobin Lindén2018-11-101-0/+4
|
* Remove GTEST_HAS_HASH_SET/MAP checkRobin Lindén2018-11-101-9/+0
|
* Remove workarounds for unsupported MSVC versionsRobin Lindén2018-11-101-12/+5
|
* Googletest exportmisterg2018-10-311-47/+5
| | | | | | Remove scoped_ptr replace with std::unique_ptr PiperOrigin-RevId: 219291284
* Merge pull request #1941 from barkovv:masterGennadiy Civil2018-10-291-5/+5
|\ | | | | | | PiperOrigin-RevId: 219134349
| * Replaced all NULLs with nullptr in googletestVadim Barkov2018-10-281-4/+4
|/
* Googletest exportAbseil Team2018-10-181-27/+0
| | | | | | C++11 code cleanup. PiperOrigin-RevId: 217364243
* Merge c41b2bf861ef2ac1a975af05ff66d9256f280b01 into ↵KO Myung-Hun2018-10-111-1/+3
| | | | | | | | f203b2db77161fe54846ea9e839ebec81aeeccac Closes #1899 PiperOrigin-RevId: 216719020
* Unconditionally use std::tuple.Abseil Team2018-10-091-175/+11
| | | | | | Remove all mention of TR1 tuple and our own implementation of tuple. PiperOrigin-RevId: 216395043
* Apply [[noreturn]] to Abort()Abseil Team2018-10-091-3/+3
| | | | PiperOrigin-RevId: 216383938
* always define define GTEST_LANG_CXX11 1misterg2018-10-081-12/+1
| | | | PiperOrigin-RevId: 216184859
* Apply clang-tidy modernize-use-nullptr to googletest.Abseil Team2018-10-051-14/+13
| | | | | | | | | | | Now that googletest has moved to C++11, it should no longer use NULL or 0 for the null pointer. This patch converts all such usages to nullptr using clang-tidy. This prevents LLVM from issuing -Wzero-as-null-pointer-constant warnings. PiperOrigin-RevId: 215814400
* Small formatting changeGennadiy Civil2018-08-161-2/+2
| | | And then we can merge
* Merge branch 'master' into masterGennadiy Civil2018-08-151-9/+23
|\
| * Comments changes, no functionality changes. Gennadiy Civil2018-08-141-5/+5
| |
| * Comments changes, no functionality changesrefs/pull/1740/headGennadiy Civil2018-08-141-2/+0
| |
| * Merge branch 'master' into deprecaterefs/pull/1665/headGennadiy Civil2018-08-141-0/+2
| |\
| * \ Merge branch 'master' into deprecateLoo Rong Jie2018-08-091-1/+2
| |\ \
| * \ \ Merge branch 'master' into deprecateGennadiy Civil2018-08-031-3/+3
| |\ \ \
| * \ \ \ Merge branch 'master' into deprecateGennadiy Civil2018-07-301-0/+2
| |\ \ \ \
| * \ \ \ \ Merge branch 'master' into deprecateGennadiy Civil2018-07-201-4/+0
| |\ \ \ \ \
| * \ \ \ \ \ Merge branch 'master' into deprecateGennadiy Civil2018-07-191-1/+1
| |\ \ \ \ \ \
| * | | | | | | Disable MSVC function deprecation when using ClangLoo Rong Jie2018-07-131-2/+18
| | | | | | | |
* | | | | | | | Merge branch 'master' into mastertisi19882018-08-141-0/+2
|\ \ \ \ \ \ \ \ | | |_|_|_|_|_|/ | |/| | | | | |
| * | | | | | | code management comments, [ci-skip], no functionality changesGennadiy Civil2018-08-091-0/+2
| | |_|_|_|_|/ | |/| | | | |