[libcxx] r337808 - Disable 'suggest braces' warnings for std::array in tests
Marshall Clow via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 23 20:41:36 PDT 2018
Author: marshall
Date: Mon Jul 23 20:41:36 2018
New Revision: 337808
URL: http://llvm.org/viewvc/llvm-project?rev=337808&view=rev
Log:
Disable 'suggest braces' warnings for std::array in tests
Modified:
libcxx/trunk/test/std/containers/views/span.cons/deduct.pass.cpp
libcxx/trunk/test/std/containers/views/span.cons/stdarray.pass.cpp
Modified: libcxx/trunk/test/std/containers/views/span.cons/deduct.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/views/span.cons/deduct.pass.cpp?rev=337808&r1=337807&r2=337808&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/views/span.cons/deduct.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/views/span.cons/deduct.pass.cpp Mon Jul 23 20:41:36 2018
@@ -37,6 +37,10 @@
#include "test_macros.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/views/span.cons/stdarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/views/span.cons/stdarray.pass.cpp?rev=337808&r1=337807&r2=337808&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/views/span.cons/stdarray.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/views/span.cons/stdarray.pass.cpp Mon Jul 23 20:41:36 2018
@@ -27,6 +27,9 @@
#include <string>
#include "test_macros.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"
void checkCV()
More information about the cfe-commits
mailing list