[libcxx] r267836 - Guard Clang and GCC specific pragmas. Patch from STL at microsoft.com

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 27 18:49:03 PDT 2016


Author: ericwf
Date: Wed Apr 27 20:49:03 2016
New Revision: 267836

URL: http://llvm.org/viewvc/llvm-project?rev=267836&view=rev
Log:
Guard Clang and GCC specific pragmas. Patch from STL at microsoft.com

Modified:
    libcxx/trunk/test/std/depr/depr.c.headers/stdio_h.pass.cpp
    libcxx/trunk/test/std/depr/depr.c.headers/wchar_h.pass.cpp
    libcxx/trunk/test/std/input.output/file.streams/c.files/cstdio.pass.cpp
    libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/char_ptr_ctor.pass.cpp
    libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/default.pass.cpp
    libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/string_ctor.pass.cpp
    libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/ull_ctor.pass.cpp
    libcxx/trunk/test/std/utilities/template.bitset/bitset.members/count.pass.cpp
    libcxx/trunk/test/std/utilities/template.bitset/bitset.members/flip_all.pass.cpp
    libcxx/trunk/test/std/utilities/template.bitset/bitset.members/flip_one.pass.cpp
    libcxx/trunk/test/std/utilities/template.bitset/bitset.members/index.pass.cpp
    libcxx/trunk/test/std/utilities/template.bitset/bitset.members/index_const.pass.cpp
    libcxx/trunk/test/std/utilities/template.bitset/bitset.members/left_shift.pass.cpp
    libcxx/trunk/test/std/utilities/template.bitset/bitset.members/left_shift_eq.pass.cpp
    libcxx/trunk/test/std/utilities/template.bitset/bitset.members/not_all.pass.cpp
    libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_and_eq.pass.cpp
    libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_eq_eq.pass.cpp
    libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp
    libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_xor_eq.pass.cpp
    libcxx/trunk/test/std/utilities/template.bitset/bitset.members/reset_all.pass.cpp
    libcxx/trunk/test/std/utilities/template.bitset/bitset.members/reset_one.pass.cpp
    libcxx/trunk/test/std/utilities/template.bitset/bitset.members/right_shift.pass.cpp
    libcxx/trunk/test/std/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp
    libcxx/trunk/test/std/utilities/template.bitset/bitset.members/set_all.pass.cpp
    libcxx/trunk/test/std/utilities/template.bitset/bitset.members/test.pass.cpp
    libcxx/trunk/test/std/utilities/template.bitset/bitset.members/to_string.pass.cpp
    libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_and.pass.cpp
    libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_not.pass.cpp
    libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_or.pass.cpp
    libcxx/trunk/test/support/disable_missing_braces_warning.h

Modified: libcxx/trunk/test/std/depr/depr.c.headers/stdio_h.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/depr/depr.c.headers/stdio_h.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/depr/depr.c.headers/stdio_h.pass.cpp (original)
+++ libcxx/trunk/test/std/depr/depr.c.headers/stdio_h.pass.cpp Wed Apr 27 20:49:03 2016
@@ -99,8 +99,10 @@
 
 #include <cstdarg>
 
+#if defined(__GNUC__)
 #pragma GCC diagnostic ignored "-Wformat-zero-length"
 #pragma GCC diagnostic ignored "-Wdeprecated-declarations" // for tmpnam
+#endif
 
 int main()
 {

Modified: libcxx/trunk/test/std/depr/depr.c.headers/wchar_h.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/depr/depr.c.headers/wchar_h.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/depr/depr.c.headers/wchar_h.pass.cpp (original)
+++ libcxx/trunk/test/std/depr/depr.c.headers/wchar_h.pass.cpp Wed Apr 27 20:49:03 2016
@@ -34,10 +34,14 @@ int main()
 //    a complete object type other than an array type that can hold the conversion 
 //    state information necessary to convert between sequences of multibyte 
 //    characters and wide characters
+#if defined(__clang__)
 #pragma clang diagnostic push
 #pragma clang diagnostic ignored "-Wmissing-braces"
+#endif
     mbstate_t mb = {0};
+#if defined(__clang__)
 #pragma clang diagnostic pop
+#endif
 
     size_t s = 0;
     tm *tm = 0;

Modified: libcxx/trunk/test/std/input.output/file.streams/c.files/cstdio.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/input.output/file.streams/c.files/cstdio.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/input.output/file.streams/c.files/cstdio.pass.cpp (original)
+++ libcxx/trunk/test/std/input.output/file.streams/c.files/cstdio.pass.cpp Wed Apr 27 20:49:03 2016
@@ -78,9 +78,11 @@
 
 #include <cstdarg>
 
+#if defined(__clang__)
 #pragma clang diagnostic push
 #pragma clang diagnostic ignored "-Wformat-zero-length"
 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
+#endif
 
 int main()
 {

Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/char_ptr_ctor.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/char_ptr_ctor.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/char_ptr_ctor.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/char_ptr_ctor.pass.cpp Wed Apr 27 20:49:03 2016
@@ -18,7 +18,9 @@
 #include <algorithm> // for 'min' and 'max'
 #include <stdexcept> // for 'invalid_argument'
 
+#if defined(__clang__)
 #pragma clang diagnostic ignored "-Wtautological-compare"
+#endif
 
 template <std::size_t N>
 void test_char_pointer_ctor()

Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/default.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/default.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/default.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/default.pass.cpp Wed Apr 27 20:49:03 2016
@@ -12,7 +12,9 @@
 #include <bitset>
 #include <cassert>
 
+#if defined(__clang__)
 #pragma clang diagnostic ignored "-Wtautological-compare"
+#endif
 
 template <std::size_t N>
 void test_default_ctor()

Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/string_ctor.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/string_ctor.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/string_ctor.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/string_ctor.pass.cpp Wed Apr 27 20:49:03 2016
@@ -15,7 +15,9 @@
 #include <algorithm> // for 'min' and 'max'
 #include <stdexcept> // for 'invalid_argument'
 
+#if defined(__clang__)
 #pragma clang diagnostic ignored "-Wtautological-compare"
+#endif
 
 template <std::size_t N>
 void test_string_ctor()

Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/ull_ctor.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/ull_ctor.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/ull_ctor.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/template.bitset/bitset.cons/ull_ctor.pass.cpp Wed Apr 27 20:49:03 2016
@@ -13,7 +13,9 @@
 #include <cassert>
 #include <algorithm> // for 'min' and 'max'
 
+#if defined(__clang__)
 #pragma clang diagnostic ignored "-Wtautological-compare"
+#endif
 
 template <std::size_t N>
 void test_val_ctor()

Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/count.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/count.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/count.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/count.pass.cpp Wed Apr 27 20:49:03 2016
@@ -13,7 +13,9 @@
 #include <cstdlib>
 #include <cassert>
 
+#if defined(__clang__)
 #pragma clang diagnostic ignored "-Wtautological-compare"
+#endif
 
 template <std::size_t N>
 std::bitset<N>

Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/flip_all.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/flip_all.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/flip_all.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/flip_all.pass.cpp Wed Apr 27 20:49:03 2016
@@ -13,7 +13,9 @@
 #include <cstdlib>
 #include <cassert>
 
+#if defined(__clang__)
 #pragma clang diagnostic ignored "-Wtautological-compare"
+#endif
 
 template <std::size_t N>
 std::bitset<N>

Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/flip_one.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/flip_one.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/flip_one.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/flip_one.pass.cpp Wed Apr 27 20:49:03 2016
@@ -14,7 +14,9 @@
 #include <cstdlib>
 #include <cassert>
 
+#if defined(__clang__)
 #pragma clang diagnostic ignored "-Wtautological-compare"
+#endif
 
 template <std::size_t N>
 std::bitset<N>

Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/index.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/index.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/index.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/index.pass.cpp Wed Apr 27 20:49:03 2016
@@ -13,7 +13,9 @@
 #include <cstdlib>
 #include <cassert>
 
+#if defined(__clang__)
 #pragma clang diagnostic ignored "-Wtautological-compare"
+#endif
 
 template <std::size_t N>
 std::bitset<N>

Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/index_const.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/index_const.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/index_const.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/index_const.pass.cpp Wed Apr 27 20:49:03 2016
@@ -13,7 +13,9 @@
 #include <cstdlib>
 #include <cassert>
 
+#if defined(__clang__)
 #pragma clang diagnostic ignored "-Wtautological-compare"
+#endif
 
 template <std::size_t N>
 std::bitset<N>

Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/left_shift.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/left_shift.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/left_shift.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/left_shift.pass.cpp Wed Apr 27 20:49:03 2016
@@ -13,7 +13,9 @@
 #include <cstdlib>
 #include <cassert>
 
+#if defined(__clang__)
 #pragma clang diagnostic ignored "-Wtautological-compare"
+#endif
 
 template <std::size_t N>
 std::bitset<N>

Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/left_shift_eq.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/left_shift_eq.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/left_shift_eq.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/left_shift_eq.pass.cpp Wed Apr 27 20:49:03 2016
@@ -13,7 +13,9 @@
 #include <cstdlib>
 #include <cassert>
 
+#if defined(__clang__)
 #pragma clang diagnostic ignored "-Wtautological-compare"
+#endif
 
 template <std::size_t N>
 std::bitset<N>

Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/not_all.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/not_all.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/not_all.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/not_all.pass.cpp Wed Apr 27 20:49:03 2016
@@ -13,7 +13,9 @@
 #include <cstdlib>
 #include <cassert>
 
+#if defined(__clang__)
 #pragma clang diagnostic ignored "-Wtautological-compare"
+#endif
 
 template <std::size_t N>
 std::bitset<N>

Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_and_eq.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_and_eq.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_and_eq.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_and_eq.pass.cpp Wed Apr 27 20:49:03 2016
@@ -13,7 +13,9 @@
 #include <cstdlib>
 #include <cassert>
 
+#if defined(__clang__)
 #pragma clang diagnostic ignored "-Wtautological-compare"
+#endif
 
 template <std::size_t N>
 std::bitset<N>

Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_eq_eq.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_eq_eq.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_eq_eq.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_eq_eq.pass.cpp Wed Apr 27 20:49:03 2016
@@ -16,7 +16,9 @@
 #include <cstdlib>
 #include <cassert>
 
+#if defined(__clang__)
 #pragma clang diagnostic ignored "-Wtautological-compare"
+#endif
 
 template <std::size_t N>
 std::bitset<N>

Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp Wed Apr 27 20:49:03 2016
@@ -13,7 +13,9 @@
 #include <cstdlib>
 #include <cassert>
 
+#if defined(__clang__)
 #pragma clang diagnostic ignored "-Wtautological-compare"
+#endif
 
 template <std::size_t N>
 std::bitset<N>

Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_xor_eq.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_xor_eq.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_xor_eq.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/op_xor_eq.pass.cpp Wed Apr 27 20:49:03 2016
@@ -13,7 +13,9 @@
 #include <cstdlib>
 #include <cassert>
 
+#if defined(__clang__)
 #pragma clang diagnostic ignored "-Wtautological-compare"
+#endif
 
 template <std::size_t N>
 std::bitset<N>

Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/reset_all.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/reset_all.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/reset_all.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/reset_all.pass.cpp Wed Apr 27 20:49:03 2016
@@ -12,7 +12,9 @@
 #include <bitset>
 #include <cassert>
 
+#if defined(__clang__)
 #pragma clang diagnostic ignored "-Wtautological-compare"
+#endif
 
 template <std::size_t N>
 void test_reset_all()

Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/reset_one.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/reset_one.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/reset_one.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/reset_one.pass.cpp Wed Apr 27 20:49:03 2016
@@ -13,8 +13,10 @@
 #include <bitset>
 #include <cassert>
 
+#if defined(__clang__)
 #pragma clang diagnostic push
 #pragma clang diagnostic ignored "-Wtautological-compare"
+#endif
 
 template <std::size_t N>
 void test_reset_one()

Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/right_shift.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/right_shift.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/right_shift.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/right_shift.pass.cpp Wed Apr 27 20:49:03 2016
@@ -13,7 +13,9 @@
 #include <cstdlib>
 #include <cassert>
 
+#if defined(__clang__)
 #pragma clang diagnostic ignored "-Wtautological-compare"
+#endif
 
 template <std::size_t N>
 std::bitset<N>

Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp Wed Apr 27 20:49:03 2016
@@ -13,7 +13,9 @@
 #include <cstdlib>
 #include <cassert>
 
+#if defined(__clang__)
 #pragma clang diagnostic ignored "-Wtautological-compare"
+#endif
 
 template <std::size_t N>
 std::bitset<N>

Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/set_all.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/set_all.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/set_all.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/set_all.pass.cpp Wed Apr 27 20:49:03 2016
@@ -12,7 +12,9 @@
 #include <bitset>
 #include <cassert>
 
+#if defined(__clang__)
 #pragma clang diagnostic ignored "-Wtautological-compare"
+#endif
 
 template <std::size_t N>
 void test_set_all()

Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/test.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/test.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/test.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/test.pass.cpp Wed Apr 27 20:49:03 2016
@@ -14,7 +14,9 @@
 #include <cstdlib>
 #include <cassert>
 
+#if defined(__clang__)
 #pragma clang diagnostic ignored "-Wtautological-compare"
+#endif
 
 template <std::size_t N>
 std::bitset<N>

Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.members/to_string.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.members/to_string.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/template.bitset/bitset.members/to_string.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/template.bitset/bitset.members/to_string.pass.cpp Wed Apr 27 20:49:03 2016
@@ -26,7 +26,9 @@
 #include <cstdlib>
 #include <cassert>
 
+#if defined(__clang__)
 #pragma clang diagnostic ignored "-Wtautological-compare"
+#endif
 
 template <std::size_t N>
 std::bitset<N>

Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_and.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_and.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_and.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_and.pass.cpp Wed Apr 27 20:49:03 2016
@@ -13,7 +13,9 @@
 #include <cstdlib>
 #include <cassert>
 
+#if defined(__clang__)
 #pragma clang diagnostic ignored "-Wtautological-compare"
+#endif
 
 template <std::size_t N>
 std::bitset<N>

Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_not.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_not.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_not.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_not.pass.cpp Wed Apr 27 20:49:03 2016
@@ -13,7 +13,9 @@
 #include <cstdlib>
 #include <cassert>
 
+#if defined(__clang__)
 #pragma clang diagnostic ignored "-Wtautological-compare"
+#endif
 
 template <std::size_t N>
 std::bitset<N>

Modified: libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_or.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_or.pass.cpp?rev=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_or.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/template.bitset/bitset.operators/op_or.pass.cpp Wed Apr 27 20:49:03 2016
@@ -13,7 +13,9 @@
 #include <cstdlib>
 #include <cassert>
 
+#if defined(__clang__)
 #pragma clang diagnostic ignored "-Wtautological-compare"
+#endif
 
 template <std::size_t N>
 std::bitset<N>

Modified: 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=267836&r1=267835&r2=267836&view=diff
==============================================================================
--- libcxx/trunk/test/support/disable_missing_braces_warning.h (original)
+++ libcxx/trunk/test/support/disable_missing_braces_warning.h Wed Apr 27 20:49:03 2016
@@ -11,6 +11,8 @@
 
 // std::array is explicitly allowed to be initialized with A a = { init-list };.
 // Disable the missing braces warning for this reason.
+#if defined(__GNUC__)
 #pragma GCC diagnostic ignored "-Wmissing-braces"
+#endif
 
 #endif // SUPPORT_DISABLE_MISSING_BRACES_WARNING_H




More information about the cfe-commits mailing list