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
79dc0f23
Commit
79dc0f23
authored
Oct 14, 2020
by
dmauro
Committed by
Derek Mauro
Oct 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Googletest export
Disable -Wmismatched-tags warning for struct/class tuple_size PiperOrigin-RevId: 337087493
parent
b2cb220e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
gtest-internal.h
googletest/include/gtest/internal/gtest-internal.h
+12
-4
No files found.
googletest/include/gtest/internal/gtest-internal.h
View file @
79dc0f23
...
@@ -1323,11 +1323,19 @@ constexpr bool InstantiateTypedTestCase_P_IsDeprecated() { return true; }
...
@@ -1323,11 +1323,19 @@ constexpr bool InstantiateTypedTestCase_P_IsDeprecated() { return true; }
}
// namespace testing
}
// namespace testing
namespace
std
{
namespace
std
{
// Some standard library implementations use `struct tuple_size` and some use
// `class tuple_size`. Clang warns about the mismatch.
// https://reviews.llvm.org/D55466
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wmismatched-tags"
#endif
template
<
typename
...
Ts
>
template
<
typename
...
Ts
>
class
tuple_size
<
testing
::
internal
::
FlatTuple
<
Ts
...
>>
struct
tuple_size
<
testing
::
internal
::
FlatTuple
<
Ts
...
>>
:
public
std
::
integral_constant
<
size_t
,
sizeof
...(
Ts
)
>
{};
:
std
::
integral_constant
<
size_t
,
sizeof
...(
Ts
)
>
{};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
}
// namespace std
}
// namespace std
#define GTEST_MESSAGE_AT_(file, line, message, result_type) \
#define GTEST_MESSAGE_AT_(file, line, message, result_type) \
...
...
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