llvm-project/libcxx/test/std/utilities/template.bitset/bitset.members
Stephan T. Lavavej 3d26ee2921 [libcxx] [test] Fix MSVC warnings C4127 and C6326 about constants.
MSVC has compiler warnings C4127 "conditional expression is constant" (enabled
by /W4) and C6326 "Potential comparison of a constant with another constant"
(enabled by /analyze). They're potentially useful, although they're slightly
annoying to library devs who know what they're doing. In the latest version of
the compiler, C4127 is suppressed when the compiler sees simple tests like
"if (name_of_thing)", so extracting comparison expressions into named
constants is a workaround. At the same time, using std::integral_constant
avoids C6326, which doesn't look at template arguments.

test/std/containers/sequences/vector.bool/emplace.pass.cpp
Replace 1 == 1 with true, which is the same as far as the library is concerned.

Fixes D28837.

llvm-svn: 292432
2017-01-18 20:09:56 +00:00
..
all.pass.cpp [libcxx] [test] Fix MSVC warnings C4127 and C6326 about constants. 2017-01-18 20:09:56 +00:00
any.pass.cpp [libcxx] [test] Fix MSVC warnings C4127 and C6326 about constants. 2017-01-18 20:09:56 +00:00
count.pass.cpp Guard Clang and GCC specific pragmas. Patch from STL@microsoft.com 2016-04-28 01:49:03 +00:00
flip_all.pass.cpp Guard Clang and GCC specific pragmas. Patch from STL@microsoft.com 2016-04-28 01:49:03 +00:00
flip_one.pass.cpp Protect bitset tests under libcpp-no-exceptions 2016-11-10 16:54:55 +00:00
index.pass.cpp [libcxx] [test] Fix MSVC warnings C4127 and C6326 about constants. 2017-01-18 20:09:56 +00:00
index_const.pass.cpp [libcxx] [test] Fix MSVC warnings C4127 and C6326 about constants. 2017-01-18 20:09:56 +00:00
left_shift.pass.cpp Guard Clang and GCC specific pragmas. Patch from STL@microsoft.com 2016-04-28 01:49:03 +00:00
left_shift_eq.pass.cpp Guard Clang and GCC specific pragmas. Patch from STL@microsoft.com 2016-04-28 01:49:03 +00:00
none.pass.cpp [libcxx] [test] Fix MSVC warnings C4127 and C6326 about constants. 2017-01-18 20:09:56 +00:00
not_all.pass.cpp Guard Clang and GCC specific pragmas. Patch from STL@microsoft.com 2016-04-28 01:49:03 +00:00
op_and_eq.pass.cpp Guard Clang and GCC specific pragmas. Patch from STL@microsoft.com 2016-04-28 01:49:03 +00:00
op_eq_eq.pass.cpp [libcxx] [test] Fix MSVC warnings C4127 and C6326 about constants. 2017-01-18 20:09:56 +00:00
op_or_eq.pass.cpp Guard Clang and GCC specific pragmas. Patch from STL@microsoft.com 2016-04-28 01:49:03 +00:00
op_xor_eq.pass.cpp Guard Clang and GCC specific pragmas. Patch from STL@microsoft.com 2016-04-28 01:49:03 +00:00
reset_all.pass.cpp Guard Clang and GCC specific pragmas. Patch from STL@microsoft.com 2016-04-28 01:49:03 +00:00
reset_one.pass.cpp Protect bitset tests under libcpp-no-exceptions 2016-11-10 16:54:55 +00:00
right_shift.pass.cpp Guard Clang and GCC specific pragmas. Patch from STL@microsoft.com 2016-04-28 01:49:03 +00:00
right_shift_eq.pass.cpp Guard Clang and GCC specific pragmas. Patch from STL@microsoft.com 2016-04-28 01:49:03 +00:00
set_all.pass.cpp Guard Clang and GCC specific pragmas. Patch from STL@microsoft.com 2016-04-28 01:49:03 +00:00
set_one.pass.cpp Protect bitset tests under libcpp-no-exceptions 2016-11-10 16:54:55 +00:00
size.pass.cpp
test.pass.cpp Protect bitset tests under libcpp-no-exceptions 2016-11-10 16:54:55 +00:00
to_string.pass.cpp Guard Clang and GCC specific pragmas. Patch from STL@microsoft.com 2016-04-28 01:49:03 +00:00
to_ullong.pass.cpp [libcxx] [test] Fix MSVC warnings C4127 and C6326 about constants. 2017-01-18 20:09:56 +00:00
to_ulong.pass.cpp [libcxx] [test] Fix MSVC warnings C4127 and C6326 about constants. 2017-01-18 20:09:56 +00:00