[libcxx] [test] Suppress MSVC's /analyze warning C6294 in a more fine-grained manner.
Fixes D32926. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@302325 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -19,6 +19,10 @@
|
||||
|
||||
#include "test_macros.h"
|
||||
|
||||
#if defined(TEST_COMPILER_C1XX)
|
||||
#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed.
|
||||
#endif
|
||||
|
||||
template <std::size_t N>
|
||||
void test_char_pointer_ctor()
|
||||
{
|
||||
|
||||
@@ -14,6 +14,10 @@
|
||||
|
||||
#include "test_macros.h"
|
||||
|
||||
#if defined(TEST_COMPILER_C1XX)
|
||||
#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed.
|
||||
#endif
|
||||
|
||||
template <std::size_t N>
|
||||
void test_default_ctor()
|
||||
{
|
||||
|
||||
@@ -16,6 +16,10 @@
|
||||
|
||||
#include "test_macros.h"
|
||||
|
||||
#if defined(TEST_COMPILER_C1XX)
|
||||
#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed.
|
||||
#endif
|
||||
|
||||
template <std::size_t N>
|
||||
void test_string_ctor()
|
||||
{
|
||||
|
||||
@@ -16,6 +16,10 @@
|
||||
|
||||
#include "test_macros.h"
|
||||
|
||||
#if defined(TEST_COMPILER_C1XX)
|
||||
#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed.
|
||||
#endif
|
||||
|
||||
template <std::size_t N>
|
||||
void test_val_ctor()
|
||||
{
|
||||
|
||||
@@ -13,8 +13,12 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#if defined(__clang__)
|
||||
#include "test_macros.h"
|
||||
|
||||
#if defined(TEST_COMPILER_CLANG)
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
#elif defined(TEST_COMPILER_C1XX)
|
||||
#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed.
|
||||
#endif
|
||||
|
||||
template <std::size_t N>
|
||||
|
||||
@@ -13,8 +13,12 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#if defined(__clang__)
|
||||
#include "test_macros.h"
|
||||
|
||||
#if defined(TEST_COMPILER_CLANG)
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
#elif defined(TEST_COMPILER_C1XX)
|
||||
#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed.
|
||||
#endif
|
||||
|
||||
template <std::size_t N>
|
||||
|
||||
@@ -15,6 +15,10 @@
|
||||
|
||||
#include "test_macros.h"
|
||||
|
||||
#if defined(TEST_COMPILER_C1XX)
|
||||
#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed.
|
||||
#endif
|
||||
|
||||
template <std::size_t N>
|
||||
std::bitset<N>
|
||||
make_bitset()
|
||||
|
||||
@@ -14,8 +14,12 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#if defined(__clang__)
|
||||
#include "test_macros.h"
|
||||
|
||||
#if defined(TEST_COMPILER_CLANG)
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
#elif defined(TEST_COMPILER_C1XX)
|
||||
#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed.
|
||||
#endif
|
||||
|
||||
template <std::size_t N>
|
||||
|
||||
@@ -14,8 +14,12 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#if defined(__clang__)
|
||||
#include "test_macros.h"
|
||||
|
||||
#if defined(TEST_COMPILER_CLANG)
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
#elif defined(TEST_COMPILER_C1XX)
|
||||
#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed.
|
||||
#endif
|
||||
|
||||
template <std::size_t N>
|
||||
|
||||
@@ -13,8 +13,12 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#if defined(__clang__)
|
||||
#include "test_macros.h"
|
||||
|
||||
#if defined(TEST_COMPILER_CLANG)
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
#elif defined(TEST_COMPILER_C1XX)
|
||||
#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed.
|
||||
#endif
|
||||
|
||||
template <std::size_t N>
|
||||
|
||||
@@ -13,8 +13,12 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#if defined(__clang__)
|
||||
#include "test_macros.h"
|
||||
|
||||
#if defined(TEST_COMPILER_CLANG)
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
#elif defined(TEST_COMPILER_C1XX)
|
||||
#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed.
|
||||
#endif
|
||||
|
||||
template <std::size_t N>
|
||||
|
||||
@@ -13,8 +13,12 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#if defined(__clang__)
|
||||
#include "test_macros.h"
|
||||
|
||||
#if defined(TEST_COMPILER_CLANG)
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
#elif defined(TEST_COMPILER_C1XX)
|
||||
#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed.
|
||||
#endif
|
||||
|
||||
template <std::size_t N>
|
||||
|
||||
@@ -13,8 +13,12 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#if defined(__clang__)
|
||||
#include "test_macros.h"
|
||||
|
||||
#if defined(TEST_COMPILER_CLANG)
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
#elif defined(TEST_COMPILER_C1XX)
|
||||
#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed.
|
||||
#endif
|
||||
|
||||
template <std::size_t N>
|
||||
|
||||
@@ -17,8 +17,12 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#if defined(__clang__)
|
||||
#include "test_macros.h"
|
||||
|
||||
#if defined(TEST_COMPILER_CLANG)
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
#elif defined(TEST_COMPILER_C1XX)
|
||||
#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed.
|
||||
#endif
|
||||
|
||||
template <std::size_t N>
|
||||
|
||||
@@ -13,8 +13,12 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#if defined(__clang__)
|
||||
#include "test_macros.h"
|
||||
|
||||
#if defined(TEST_COMPILER_CLANG)
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
#elif defined(TEST_COMPILER_C1XX)
|
||||
#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed.
|
||||
#endif
|
||||
|
||||
template <std::size_t N>
|
||||
|
||||
@@ -13,8 +13,12 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#if defined(__clang__)
|
||||
#include "test_macros.h"
|
||||
|
||||
#if defined(TEST_COMPILER_CLANG)
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
#elif defined(TEST_COMPILER_C1XX)
|
||||
#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed.
|
||||
#endif
|
||||
|
||||
template <std::size_t N>
|
||||
|
||||
@@ -12,8 +12,12 @@
|
||||
#include <bitset>
|
||||
#include <cassert>
|
||||
|
||||
#if defined(__clang__)
|
||||
#include "test_macros.h"
|
||||
|
||||
#if defined(TEST_COMPILER_CLANG)
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
#elif defined(TEST_COMPILER_C1XX)
|
||||
#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed.
|
||||
#endif
|
||||
|
||||
template <std::size_t N>
|
||||
|
||||
@@ -13,8 +13,12 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#if defined(__clang__)
|
||||
#include "test_macros.h"
|
||||
|
||||
#if defined(TEST_COMPILER_CLANG)
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
#elif defined(TEST_COMPILER_C1XX)
|
||||
#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed.
|
||||
#endif
|
||||
|
||||
template <std::size_t N>
|
||||
|
||||
@@ -13,8 +13,12 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#if defined(__clang__)
|
||||
#include "test_macros.h"
|
||||
|
||||
#if defined(TEST_COMPILER_CLANG)
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
#elif defined(TEST_COMPILER_C1XX)
|
||||
#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed.
|
||||
#endif
|
||||
|
||||
template <std::size_t N>
|
||||
|
||||
@@ -12,8 +12,12 @@
|
||||
#include <bitset>
|
||||
#include <cassert>
|
||||
|
||||
#if defined(__clang__)
|
||||
#include "test_macros.h"
|
||||
|
||||
#if defined(TEST_COMPILER_CLANG)
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
#elif defined(TEST_COMPILER_C1XX)
|
||||
#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed.
|
||||
#endif
|
||||
|
||||
template <std::size_t N>
|
||||
|
||||
@@ -15,6 +15,10 @@
|
||||
|
||||
#include "test_macros.h"
|
||||
|
||||
#if defined(TEST_COMPILER_C1XX)
|
||||
#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed.
|
||||
#endif
|
||||
|
||||
template <std::size_t N>
|
||||
std::bitset<N>
|
||||
make_bitset()
|
||||
|
||||
@@ -26,8 +26,12 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#if defined(__clang__)
|
||||
#include "test_macros.h"
|
||||
|
||||
#if defined(TEST_COMPILER_CLANG)
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
#elif defined(TEST_COMPILER_C1XX)
|
||||
#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed.
|
||||
#endif
|
||||
|
||||
template <std::size_t N>
|
||||
|
||||
@@ -13,8 +13,12 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#if defined(__clang__)
|
||||
#include "test_macros.h"
|
||||
|
||||
#if defined(TEST_COMPILER_CLANG)
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
#elif defined(TEST_COMPILER_C1XX)
|
||||
#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed.
|
||||
#endif
|
||||
|
||||
template <std::size_t N>
|
||||
|
||||
@@ -13,8 +13,12 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#if defined(__clang__)
|
||||
#include "test_macros.h"
|
||||
|
||||
#if defined(TEST_COMPILER_CLANG)
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
#elif defined(TEST_COMPILER_C1XX)
|
||||
#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed.
|
||||
#endif
|
||||
|
||||
template <std::size_t N>
|
||||
|
||||
@@ -13,8 +13,12 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#if defined(__clang__)
|
||||
#include "test_macros.h"
|
||||
|
||||
#if defined(TEST_COMPILER_CLANG)
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
#elif defined(TEST_COMPILER_C1XX)
|
||||
#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed.
|
||||
#endif
|
||||
|
||||
template <std::size_t N>
|
||||
|
||||
@@ -57,7 +57,6 @@ const AssertionDialogAvoider assertion_dialog_avoider{};
|
||||
#pragma warning(disable: 4180) // qualifier applied to function type has no meaning; ignored
|
||||
#pragma warning(disable: 4521) // multiple copy constructors specified
|
||||
#pragma warning(disable: 4702) // unreachable code
|
||||
#pragma warning(disable: 6294) // Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed.
|
||||
#pragma warning(disable: 28251) // Inconsistent annotation for 'new': this instance has no annotations.
|
||||
#endif // !defined(__clang__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user