summaryrefslogtreecommitdiffstats
path: root/googletest/include/gtest/gtest-printers.h
Commit message (Collapse)AuthorAgeFilesLines
* Googletest exportAbseil Team2020-02-111-12/+13
| | | | | | Add gmock Matcher<std::string_view> specialization. PiperOrigin-RevId: 294443240
* remove g++ 3.3 workaround: using on operator<<refs/pull/2591/headKrystian Kuzniarek2019-11-221-4/+2
|
* Merge pull request #2453 from kuzkry:gtest-port-clean-up_kMaxBiggestIntXiaoyi Zhang2019-11-041-17/+18
|\ | | | | | | PiperOrigin-RevId: 278008286
* \ Merge pull request #2453 from kuzkry:gtest-port-clean-up_kMaxBiggestIntvslashg2019-11-011-18/+17
|\ \ | |/ | | | | PiperOrigin-RevId: 277979766
| * remove BiggestIntrefs/pull/2453/headKrystian Kuzniarek2019-10-241-8/+8
|/
* Merge pull request #2254 from chaoran:masterGennadiy Civil2019-05-171-3/+4
|\ | | | | | | PiperOrigin-RevId: 248759825
| * Use std::addressof to instead of plain '&'.Chaoran Yang2019-05-121-2/+2
|/ | | | | Otherwise the code won't compile if the '&' operater is overloaded and return something that cannot be casted to void *.
* Googletest exportAbseil Team2019-04-011-26/+2
| | | | | | | | 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-01-141-2/+1
| | | | | | | Deduplicate testing::ReferenceWrapper with std::reference_wrapper. Minor cleanups in matchers_test. PiperOrigin-RevId: 229022872
* Googletest exportmisterg2019-01-081-2/+2
| | | | | | | Replace testing::internal::ImplicitlyConvertible with std::is_convertible Fixes #2054 PiperOrigin-RevId: 228334305
* Googletest exportmisterg2019-01-021-1/+0
| | | | | | Internal Change PiperOrigin-RevId: 227575279
* Googletest exportAbseil Team2019-01-021-1/+1
| | | | | | | | Remove the #ifs for old, unsupported and buggy compilers: * old versions of GCC & MSVC * Symbian PiperOrigin-RevId: 227116941
* Unconditionally use std::tuple.Abseil Team2018-10-091-189/+34
| | | | | | Remove all mention of TR1 tuple and our own implementation of tuple. PiperOrigin-RevId: 216395043
* Remove pre-C++11 code from gtest-printersmisterg2018-10-051-8/+0
| | | | PiperOrigin-RevId: 215941759
* Apply clang-tidy modernize-use-nullptr to googletest.Abseil Team2018-10-051-4/+4
| | | | | | | | | | | 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
* Googletest exportrefs/pull/1846/headmisterg2018-09-201-0/+1
| | | | | | Fixing broken OSS build, add missing include PiperOrigin-RevId: 213812210
* Googletest exportAbseil Team2018-09-201-0/+8
| | | | | | support printing std::reference_wrapper<T> in gUnit PiperOrigin-RevId: 213270392
* FormattingGennadiy Civil2018-08-171-4/+5
|
* Merge branch 'master' into patch-1Gennadiy Civil2018-08-151-3/+27
|\
| * Comments changes, no functionality changes. Gennadiy Civil2018-08-141-1/+1
| |
| * Comments changes, no functionality changesrefs/pull/1740/headGennadiy Civil2018-08-141-2/+1
| |
| * Formatting changes for automatic code managementGennadiy Civil2018-07-271-0/+2
| |
| * Adds the UniversalPrinter for absl::variant.refs/pull/1662/headDerek Mauro2018-07-121-0/+23
| |
* | Cast the tr1::tuple_element template parameter to intmedithe2018-07-091-2/+2
|/ | | | | | | | | | | Because in `std::tr1::tuple_element` the first template parameter should be of type int (https://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-4.4/a00547.html), but the code inserts a size_t, the first template parameter should be casted to int before, to get rid of the following errors: googletest-src/googletest/include/gtest/gtest-printers.h:957:60: error: conversion from ‘long unsigned int’ to ‘int’ may change value [-Werror=conversion] struct tuple_element : ::std::tr1::tuple_element<I, Tuple> {}; and googletest-src/googletest/include/gtest/gtest-printers.h:961:56: error: conversion from ‘long unsigned int’ to ‘int’ may change value [-Werror=conversion] const typename ::std::tr1::tuple_element<I, Tuple>::type>::type get(
* Upstream, cl/199129756refs/pull/1620/headGennadiy Civil2018-06-041-0/+4
| | | Add printer for std::nullptr_t, addressing https://github.com/google/googletest/issues/1616
* Formatting changes refs/pull/1607/headGennadiy Civil2018-05-231-1/+1
|
* merge, again, IsRecursiveContainerrefs/pull/1507/headGennadiy Civil2018-03-151-5/+7
|
* cleanup/mergesGennadiy Civil2018-02-131-1/+1
|
* Merges and also adding new bazel build moderefs/pull/1435/headGennadiy Civil2018-01-311-1/+2
|
* Code mergesGennadiy Civil2018-01-301-15/+57
|
* Ability to optionally depend on Abseil plus upstream of 183716547refs/pull/1434/headGennadiy Civil2018-01-301-0/+28
|
* Merge branch 'master' into uintptrrefs/pull/991/headGennadiy Civil2018-01-021-9/+13
|\
| * Swap reinterpret_cast for static_caststkhapugin@chromium.org2017-09-191-2/+2
| | | | | | | | Swap reinterpret_cast for static_cast
| * add a castStepan Khapugin2017-09-051-1/+2
| |
| * Infinite Loop when calling a mock function that takes ↵drgler2017-08-091-8/+11
| | | | | | | | boost::filesystem::path as parameter #521: Add is_same type trait and prevent infinite loops for recursive containers
* | Pass MSVC's C4826 warning.David Benjamin2017-08-071-7/+2
|/ | | | | | | | MSVC has an optional warning which flags when 32-bit pointers get cast into a 64-bit value. This is a little overaggressive I think, but to ease compiling in projects with aggressive warnings, fix this by just casting to const void * directly. Modern GCCs seem to compile it just fine.
* Merge pull request #1091 from nico/wmicroBilly Donahue2017-05-231-38/+51
|\ | | | | Fix -Wmicrosoft-cast warnings when using gtest with clang on Windows.
| * Fix -Wmicrosoft-cast warnings when using gtest with clang on Windows.refs/pull/1091/headNico Weber2017-05-151-38/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This upstreams a Google-internal change. Original CL description: The C++ standard says that function pointers are not implicitly convertible to object pointers. Visual Studio disregards that and allows implicit conversion between function pointers and object points, and enough code relies on this that clang follows suit in Microsoft-compatibility mode. However, clang emits a -Wmicrosoft-cast warning when such a conversion is done: E:\b\c\b\win_clang\src\sandbox\win\src\sync_dispatcher.cc(42,7): warning: implicit conversion between pointer-to-function and pointer-to-object is a Microsoft extension [-Wmicrosoft-cast] This change fixes this warning in gtest, while hopefully not changing any behavior. The change does two things: 1. It replaces the if in DefaultPrintTo with SFINAE 2. In C++11 mode, it uses enable_if<is_function<>> instead of ImplicitlyConvertible<T*, const void*> to check if the explicit cast is needed. With this change, functions will use the branch with the reintpret_casts with Visual Studio and clang/win, and clang no longer needs to warn that it implicitly converts a function pointer to a void pointer.
* | Use std::string and ::string explicitly in gtest and gmock code.refs/pull/1089/headNico Weber2017-05-151-5/+5
|/ | | | | | | | | This merges a Google-internal change (117235625). Original CL description: This CL was created manually in about an hour with sed, a Python script to find all the places unqualified 'string' was mentioned, and some help from Emacs to add the "std::" qualifications, plus a few manual tweaks.
* Move everything in googletest into googletest/googletestBilly Donahue2015-08-251-0/+993