Author: ericwf
Date: Thu Oct  1 02:05:38 2015
New Revision: 248987

URL: http://llvm.org/viewvc/llvm-project?rev=248987&view=rev
Log:
Suppress array initialization warnings in std::experimental::apply tests

Added:
    libcxx/trunk/test/support/disable_missing_braces_warning.h
Removed:
    libcxx/trunk/test/std/containers/sequences/array/suppress_array_warnings.h
Modified:
    
libcxx/trunk/test/std/containers/sequences/array/array.cons/initializer_list.pass.cpp
    libcxx/trunk/test/std/containers/sequences/array/array.data/data.pass.cpp
    
libcxx/trunk/test/std/containers/sequences/array/array.data/data_const.pass.cpp
    libcxx/trunk/test/std/containers/sequences/array/array.fill/fill.pass.cpp
    libcxx/trunk/test/std/containers/sequences/array/array.size/size.pass.cpp
    libcxx/trunk/test/std/containers/sequences/array/array.special/swap.pass.cpp
    libcxx/trunk/test/std/containers/sequences/array/array.swap/swap.pass.cpp
    libcxx/trunk/test/std/containers/sequences/array/array.tuple/get.fail.cpp
    libcxx/trunk/test/std/containers/sequences/array/array.tuple/get.pass.cpp
    
libcxx/trunk/test/std/containers/sequences/array/array.tuple/get_const.pass.cpp
    libcxx/trunk/test/std/containers/sequences/array/array.tuple/get_rv.pass.cpp
    libcxx/trunk/test/std/containers/sequences/array/at.pass.cpp
    libcxx/trunk/test/std/containers/sequences/array/begin.pass.cpp
    libcxx/trunk/test/std/containers/sequences/array/front_back.pass.cpp
    libcxx/trunk/test/std/containers/sequences/array/indexing.pass.cpp
    
libcxx/trunk/test/std/experimental/utilities/tuple/tuple.apply/arg_type.pass.cpp
    
libcxx/trunk/test/std/experimental/utilities/tuple/tuple.apply/extended_types.pass.cpp
    
libcxx/trunk/test/std/experimental/utilities/tuple/tuple.apply/types.pass.cpp

Modified: 
libcxx/trunk/test/std/containers/sequences/array/array.cons/initializer_list.pass.cpp
URL: 
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/array/array.cons/initializer_list.pass.cpp?rev=248987&r1=248986&r2=248987&view=diff
==============================================================================
--- 
libcxx/trunk/test/std/containers/sequences/array/array.cons/initializer_list.pass.cpp
 (original)
+++ 
libcxx/trunk/test/std/containers/sequences/array/array.cons/initializer_list.pass.cpp
 Thu Oct  1 02:05:38 2015
@@ -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()
 {

Modified: 
libcxx/trunk/test/std/containers/sequences/array/array.data/data.pass.cpp
URL: 
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/array/array.data/data.pass.cpp?rev=248987&r1=248986&r2=248987&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/array/array.data/data.pass.cpp 
(original)
+++ libcxx/trunk/test/std/containers/sequences/array/array.data/data.pass.cpp 
Thu Oct  1 02:05:38 2015
@@ -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()
 {

Modified: 
libcxx/trunk/test/std/containers/sequences/array/array.data/data_const.pass.cpp
URL: 
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/array/array.data/data_const.pass.cpp?rev=248987&r1=248986&r2=248987&view=diff
==============================================================================
--- 
libcxx/trunk/test/std/containers/sequences/array/array.data/data_const.pass.cpp 
(original)
+++ 
libcxx/trunk/test/std/containers/sequences/array/array.data/data_const.pass.cpp 
Thu Oct  1 02:05:38 2015
@@ -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()
 {

Modified: 
libcxx/trunk/test/std/containers/sequences/array/array.fill/fill.pass.cpp
URL: 
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/array/array.fill/fill.pass.cpp?rev=248987&r1=248986&r2=248987&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/array/array.fill/fill.pass.cpp 
(original)
+++ libcxx/trunk/test/std/containers/sequences/array/array.fill/fill.pass.cpp 
Thu Oct  1 02:05:38 2015
@@ -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()
 {

Modified: 
libcxx/trunk/test/std/containers/sequences/array/array.size/size.pass.cpp
URL: 
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/array/array.size/size.pass.cpp?rev=248987&r1=248986&r2=248987&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/array/array.size/size.pass.cpp 
(original)
+++ libcxx/trunk/test/std/containers/sequences/array/array.size/size.pass.cpp 
Thu Oct  1 02:05:38 2015
@@ -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()
 {

Modified: 
libcxx/trunk/test/std/containers/sequences/array/array.special/swap.pass.cpp
URL: 
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/array/array.special/swap.pass.cpp?rev=248987&r1=248986&r2=248987&view=diff
==============================================================================
--- 
libcxx/trunk/test/std/containers/sequences/array/array.special/swap.pass.cpp 
(original)
+++ 
libcxx/trunk/test/std/containers/sequences/array/array.special/swap.pass.cpp 
Thu Oct  1 02:05:38 2015
@@ -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()
 {

Modified: 
libcxx/trunk/test/std/containers/sequences/array/array.swap/swap.pass.cpp
URL: 
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/array/array.swap/swap.pass.cpp?rev=248987&r1=248986&r2=248987&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/array/array.swap/swap.pass.cpp 
(original)
+++ libcxx/trunk/test/std/containers/sequences/array/array.swap/swap.pass.cpp 
Thu Oct  1 02:05:38 2015
@@ -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()
 {

Modified: 
libcxx/trunk/test/std/containers/sequences/array/array.tuple/get.fail.cpp
URL: 
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/array/array.tuple/get.fail.cpp?rev=248987&r1=248986&r2=248987&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/array/array.tuple/get.fail.cpp 
(original)
+++ libcxx/trunk/test/std/containers/sequences/array/array.tuple/get.fail.cpp 
Thu Oct  1 02:05:38 2015
@@ -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()
 {

Modified: 
libcxx/trunk/test/std/containers/sequences/array/array.tuple/get.pass.cpp
URL: 
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/array/array.tuple/get.pass.cpp?rev=248987&r1=248986&r2=248987&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/array/array.tuple/get.pass.cpp 
(original)
+++ libcxx/trunk/test/std/containers/sequences/array/array.tuple/get.pass.cpp 
Thu Oct  1 02:05:38 2015
@@ -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

Modified: 
libcxx/trunk/test/std/containers/sequences/array/array.tuple/get_const.pass.cpp
URL: 
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/array/array.tuple/get_const.pass.cpp?rev=248987&r1=248986&r2=248987&view=diff
==============================================================================
--- 
libcxx/trunk/test/std/containers/sequences/array/array.tuple/get_const.pass.cpp 
(original)
+++ 
libcxx/trunk/test/std/containers/sequences/array/array.tuple/get_const.pass.cpp 
Thu Oct  1 02:05:38 2015
@@ -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()
 {

Modified: 
libcxx/trunk/test/std/containers/sequences/array/array.tuple/get_rv.pass.cpp
URL: 
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/array/array.tuple/get_rv.pass.cpp?rev=248987&r1=248986&r2=248987&view=diff
==============================================================================
--- 
libcxx/trunk/test/std/containers/sequences/array/array.tuple/get_rv.pass.cpp 
(original)
+++ 
libcxx/trunk/test/std/containers/sequences/array/array.tuple/get_rv.pass.cpp 
Thu Oct  1 02:05:38 2015
@@ -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()
 {

Modified: libcxx/trunk/test/std/containers/sequences/array/at.pass.cpp
URL: 
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/array/at.pass.cpp?rev=248987&r1=248986&r2=248987&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/array/at.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/sequences/array/at.pass.cpp Thu Oct  1 
02:05:38 2015
@@ -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()
 {

Modified: libcxx/trunk/test/std/containers/sequences/array/begin.pass.cpp
URL: 
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/array/begin.pass.cpp?rev=248987&r1=248986&r2=248987&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/array/begin.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/sequences/array/begin.pass.cpp Thu Oct  1 
02:05:38 2015
@@ -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()
 {

Modified: libcxx/trunk/test/std/containers/sequences/array/front_back.pass.cpp
URL: 
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/array/front_back.pass.cpp?rev=248987&r1=248986&r2=248987&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/array/front_back.pass.cpp 
(original)
+++ libcxx/trunk/test/std/containers/sequences/array/front_back.pass.cpp Thu 
Oct  1 02:05:38 2015
@@ -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()
 {

Modified: libcxx/trunk/test/std/containers/sequences/array/indexing.pass.cpp
URL: 
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/array/indexing.pass.cpp?rev=248987&r1=248986&r2=248987&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/array/indexing.pass.cpp 
(original)
+++ libcxx/trunk/test/std/containers/sequences/array/indexing.pass.cpp Thu Oct  
1 02:05:38 2015
@@ -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()
 {

Removed: 
libcxx/trunk/test/std/containers/sequences/array/suppress_array_warnings.h
URL: 
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/array/suppress_array_warnings.h?rev=248986&view=auto
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/array/suppress_array_warnings.h 
(original)
+++ libcxx/trunk/test/std/containers/sequences/array/suppress_array_warnings.h 
(removed)
@@ -1,8 +0,0 @@
-#ifndef SUPPRESS_ARRAY_WARNINGS_H
-#define 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.
-#pragma GCC diagnostic ignored "-Wmissing-braces"
-
-#endif // SUPPRESS_ARRAY_WARNINGS

Modified: 
libcxx/trunk/test/std/experimental/utilities/tuple/tuple.apply/arg_type.pass.cpp
URL: 
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/utilities/tuple/tuple.apply/arg_type.pass.cpp?rev=248987&r1=248986&r2=248987&view=diff
==============================================================================
--- 
libcxx/trunk/test/std/experimental/utilities/tuple/tuple.apply/arg_type.pass.cpp
 (original)
+++ 
libcxx/trunk/test/std/experimental/utilities/tuple/tuple.apply/arg_type.pass.cpp
 Thu Oct  1 02:05:38 2015
@@ -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); }

Modified: 
libcxx/trunk/test/std/experimental/utilities/tuple/tuple.apply/extended_types.pass.cpp
URL: 
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/utilities/tuple/tuple.apply/extended_types.pass.cpp?rev=248987&r1=248986&r2=248987&view=diff
==============================================================================
--- 
libcxx/trunk/test/std/experimental/utilities/tuple/tuple.apply/extended_types.pass.cpp
 (original)
+++ 
libcxx/trunk/test/std/experimental/utilities/tuple/tuple.apply/extended_types.pass.cpp
 Thu Oct  1 02:05:38 2015
@@ -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

Modified: 
libcxx/trunk/test/std/experimental/utilities/tuple/tuple.apply/types.pass.cpp
URL: 
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/utilities/tuple/tuple.apply/types.pass.cpp?rev=248987&r1=248986&r2=248987&view=diff
==============================================================================
--- 
libcxx/trunk/test/std/experimental/utilities/tuple/tuple.apply/types.pass.cpp 
(original)
+++ 
libcxx/trunk/test/std/experimental/utilities/tuple/tuple.apply/types.pass.cpp 
Thu Oct  1 02:05:38 2015
@@ -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;

Added: libcxx/trunk/test/support/disable_missing_braces_warning.h
URL: 
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/support/disable_missing_braces_warning.h?rev=248987&view=auto
==============================================================================
--- libcxx/trunk/test/support/disable_missing_braces_warning.h (added)
+++ libcxx/trunk/test/support/disable_missing_braces_warning.h Thu Oct  1 
02:05:38 2015
@@ -0,0 +1,8 @@
+#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 // SUPPORT_DISABLE_MISSING_BRACES_WARNING_H


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to