Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
3c95bf55
Commit
3c95bf55
authored
Oct 15, 2020
by
dmauro
Committed by
Derek Mauro
Oct 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Googletest export
Fixes build warnings from previous CL Add CMake to internal presubmit to prevent these PiperOrigin-RevId: 337325504
parent
ebbeee39
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
gmock-matchers.h
googlemock/include/gmock/gmock-matchers.h
+4
-4
gtest-internal.h
googletest/include/gtest/internal/gtest-internal.h
+1
-1
gtest_unittest.cc
googletest/test/gtest_unittest.cc
+1
-1
No files found.
googlemock/include/gmock/gmock-matchers.h
View file @
3c95bf55
...
...
@@ -2980,7 +2980,7 @@ auto UnpackStruct(const T& t)
// The array ensures left-to-right order of evaluation.
// Usage: VariadicExpand({expr...});
template
<
typename
T
,
size_t
N
>
void
VariadicExpand
(
const
T
(
&
a
)[
N
])
{}
void
VariadicExpand
(
const
T
(
&
)[
N
])
{}
template
<
typename
Struct
,
typename
StructSize
>
class
FieldsAreMatcherImpl
;
...
...
@@ -3029,13 +3029,13 @@ class FieldsAreMatcherImpl<Struct, IndexSequence<I...>>
return
good
;
}
int
failed_pos
=
-
1
;
size_t
failed_pos
=
~
size_t
{}
;
std
::
vector
<
StringMatchResultListener
>
inner_listener
(
sizeof
...(
I
));
VariadicExpand
(
{
failed_pos
==
-
1
&&
!
std
::
get
<
I
>
(
matchers_
).
MatchAndExplain
(
std
::
get
<
I
>
(
tuple
),
&
inner_listener
[
I
])
{
failed_pos
==
~
size_t
{}
&&
!
std
::
get
<
I
>
(
matchers_
).
MatchAndExplain
(
std
::
get
<
I
>
(
tuple
),
&
inner_listener
[
I
])
?
failed_pos
=
I
:
0
...});
if
(
failed_pos
!=
~
size_t
{})
{
...
...
googletest/include/gtest/internal/gtest-internal.h
View file @
3c95bf55
...
...
@@ -287,7 +287,7 @@ class FloatingPoint {
//
// See the following article for more details on ULP:
// http://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/
static
const
size
_t
kMaxUlps
=
4
;
static
const
uint32
_t
kMaxUlps
=
4
;
// Constructs a FloatingPoint from a raw floating-point number.
//
...
...
googletest/test/gtest_unittest.cc
View file @
3c95bf55
...
...
@@ -2768,7 +2768,7 @@ class FloatingPointTest : public Test {
typedef
typename
Floating
::
Bits
Bits
;
void
SetUp
()
override
{
const
size
_t
max_ulps
=
Floating
::
kMaxUlps
;
const
uint32
_t
max_ulps
=
Floating
::
kMaxUlps
;
// The bits that represent 0.0.
const
Bits
zero_bits
=
Floating
(
0
).
bits
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment