Suppress array initialization warnings in std::experimental::apply tests

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@248987 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2015-10-01 07:05:38 +00:00
parent 49abdbcca3
commit 237206bfda
19 changed files with 62 additions and 18 deletions

View File

@@ -14,7 +14,9 @@
#include <array>
#include <cassert>
#include "../suppress_array_warnings.h"
// std::array is explicitly allowed to be initialized with A a = { init-list };.
// Disable the missing braces warning for this reason.
#include "disable_missing_braces_warning.h"
int main()
{

View File

@@ -14,7 +14,9 @@
#include <array>
#include <cassert>
#include "../suppress_array_warnings.h"
// std::array is explicitly allowed to be initialized with A a = { init-list };.
// Disable the missing braces warning for this reason.
#include "disable_missing_braces_warning.h"
int main()
{

View File

@@ -14,7 +14,9 @@
#include <array>
#include <cassert>
#include "../suppress_array_warnings.h"
// std::array is explicitly allowed to be initialized with A a = { init-list };.
// Disable the missing braces warning for this reason.
#include "disable_missing_braces_warning.h"
int main()
{

View File

@@ -14,7 +14,9 @@
#include <array>
#include <cassert>
#include "../suppress_array_warnings.h"
// std::array is explicitly allowed to be initialized with A a = { init-list };.
// Disable the missing braces warning for this reason.
#include "disable_missing_braces_warning.h"
int main()
{

View File

@@ -14,7 +14,9 @@
#include <array>
#include <cassert>
#include "../suppress_array_warnings.h"
// std::array is explicitly allowed to be initialized with A a = { init-list };.
// Disable the missing braces warning for this reason.
#include "disable_missing_braces_warning.h"
int main()
{

View File

@@ -14,7 +14,9 @@
#include <array>
#include <cassert>
#include "../suppress_array_warnings.h"
// std::array is explicitly allowed to be initialized with A a = { init-list };.
// Disable the missing braces warning for this reason.
#include "disable_missing_braces_warning.h"
int main()
{

View File

@@ -14,7 +14,9 @@
#include <array>
#include <cassert>
#include "../suppress_array_warnings.h"
// std::array is explicitly allowed to be initialized with A a = { init-list };.
// Disable the missing braces warning for this reason.
#include "disable_missing_braces_warning.h"
int main()
{

View File

@@ -20,7 +20,10 @@
#include <cassert>
#include "test_macros.h"
#include "../suppress_array_warnings.h"
// std::array is explicitly allowed to be initialized with A a = { init-list };.
// Disable the missing braces warning for this reason.
#include "disable_missing_braces_warning.h"
int main()
{

View File

@@ -16,7 +16,9 @@
#include "test_macros.h"
#include "../suppress_array_warnings.h"
// std::array is explicitly allowed to be initialized with A a = { init-list };.
// Disable the missing braces warning for this reason.
#include "disable_missing_braces_warning.h"
#if TEST_STD_VER > 11

View File

@@ -16,7 +16,9 @@
#include "test_macros.h"
#include "../suppress_array_warnings.h"
// std::array is explicitly allowed to be initialized with A a = { init-list };.
// Disable the missing braces warning for this reason.
#include "disable_missing_braces_warning.h"
int main()
{

View File

@@ -18,7 +18,9 @@
#include <utility>
#include <cassert>
#include "../suppress_array_warnings.h"
// std::array is explicitly allowed to be initialized with A a = { init-list };.
// Disable the missing braces warning for this reason.
#include "disable_missing_braces_warning.h"
int main()
{

View File

@@ -19,7 +19,9 @@
#include "test_macros.h"
#include "suppress_array_warnings.h"
// std::array is explicitly allowed to be initialized with A a = { init-list };.
// Disable the missing braces warning for this reason.
#include "disable_missing_braces_warning.h"
int main()
{

View File

@@ -14,7 +14,9 @@
#include <array>
#include <cassert>
#include "suppress_array_warnings.h"
// std::array is explicitly allowed to be initialized with A a = { init-list };.
// Disable the missing braces warning for this reason.
#include "disable_missing_braces_warning.h"
int main()
{

View File

@@ -19,7 +19,9 @@
#include "test_macros.h"
#include "suppress_array_warnings.h"
// std::array is explicitly allowed to be initialized with A a = { init-list };.
// Disable the missing braces warning for this reason.
#include "disable_missing_braces_warning.h"
int main()
{

View File

@@ -19,7 +19,9 @@
#include "test_macros.h"
#include "suppress_array_warnings.h"
// std::array is explicitly allowed to be initialized with A a = { init-list };.
// Disable the missing braces warning for this reason.
#include "disable_missing_braces_warning.h"
int main()
{

View File

@@ -20,6 +20,11 @@
#include <utility>
#include <cassert>
// std::array is explicitly allowed to be initialized with A a = { init-list };.
// Disable the missing braces warning for this reason.
#include "disable_missing_braces_warning.h"
namespace ex = std::experimental;
int call_with_value(int x, int y) { return (x + y); }

View File

@@ -22,6 +22,10 @@
#include <utility>
#include <cassert>
// std::array is explicitly allowed to be initialized with A a = { init-list };.
// Disable the missing braces warning for this reason.
#include "disable_missing_braces_warning.h"
int count = 0;
struct A_int_0

View File

@@ -20,6 +20,10 @@
#include <utility>
#include <cassert>
// std::array is explicitly allowed to be initialized with A a = { init-list };.
// Disable the missing braces warning for this reason.
#include "disable_missing_braces_warning.h"
namespace ex = std::experimental;
int count = 0;

View File

@@ -1,8 +1,8 @@
#ifndef SUPPRESS_ARRAY_WARNINGS_H
#define SUPPRESS_ARRAY_WARNINGS_H
#ifndef SUPPORT_DISABLE_MISSING_BRACES_WARNING_H
#define SUPPORT_DISABLE_MISSING_BRACES_WARNING_H
// std::array is explicitly allowed to be initialized with A a = { init-list };.
// Disable the missing braces warning for this reason.
#pragma GCC diagnostic ignored "-Wmissing-braces"
#endif // SUPPRESS_ARRAY_WARNINGS
#endif // SUPPORT_DISABLE_MISSING_BRACES_WARNING_H