[libcxxabi] r272819 - Suppress warnings about the operations currently under test.

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 15 12:07:20 PDT 2016


Author: ericwf
Date: Wed Jun 15 14:07:19 2016
New Revision: 272819

URL: http://llvm.org/viewvc/llvm-project?rev=272819&view=rev
Log:
Suppress warnings about the operations currently under test.

Modified:
    libcxxabi/trunk/test/catch_class_03.pass.cpp
    libcxxabi/trunk/test/catch_class_04.pass.cpp
    libcxxabi/trunk/test/catch_const_pointer_nullptr.pass.cpp
    libcxxabi/trunk/test/catch_ptr.pass.cpp
    libcxxabi/trunk/test/catch_ptr_02.pass.cpp
    libcxxabi/trunk/test/dynamic_cast3.pass.cpp
    libcxxabi/trunk/test/dynamic_cast5.pass.cpp
    libcxxabi/trunk/test/inherited_exception.pass.cpp

Modified: libcxxabi/trunk/test/catch_class_03.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/test/catch_class_03.pass.cpp?rev=272819&r1=272818&r2=272819&view=diff
==============================================================================
--- libcxxabi/trunk/test/catch_class_03.pass.cpp (original)
+++ libcxxabi/trunk/test/catch_class_03.pass.cpp Wed Jun 15 14:07:19 2016
@@ -19,6 +19,13 @@
 #include <stdlib.h>
 #include <assert.h>
 
+// Clang emits  warnings about exceptions of type 'Child' being caught by
+// an earlier handler of type 'Base'. Congrats clang, you've just
+// diagnosed the behavior under test.
+#if defined(__clang__)
+#pragma clang diagnostic ignored "-Wexceptions"
+#endif
+
 struct B
 {
     static int count;

Modified: libcxxabi/trunk/test/catch_class_04.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/test/catch_class_04.pass.cpp?rev=272819&r1=272818&r2=272819&view=diff
==============================================================================
--- libcxxabi/trunk/test/catch_class_04.pass.cpp (original)
+++ libcxxabi/trunk/test/catch_class_04.pass.cpp Wed Jun 15 14:07:19 2016
@@ -19,6 +19,13 @@
 #include <stdlib.h>
 #include <assert.h>
 
+// Clang emits  warnings about exceptions of type 'Child' being caught by
+// an earlier handler of type 'Base'. Congrats clang, you've just
+// diagnosed the behavior under test.
+#if defined(__clang__)
+#pragma clang diagnostic ignored "-Wexceptions"
+#endif
+
 struct B
 {
     static int count;

Modified: libcxxabi/trunk/test/catch_const_pointer_nullptr.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/test/catch_const_pointer_nullptr.pass.cpp?rev=272819&r1=272818&r2=272819&view=diff
==============================================================================
--- libcxxabi/trunk/test/catch_const_pointer_nullptr.pass.cpp (original)
+++ libcxxabi/trunk/test/catch_const_pointer_nullptr.pass.cpp Wed Jun 15 14:07:19 2016
@@ -11,6 +11,13 @@
 
 #include <cassert>
 
+// Clang emits  warnings about exceptions of type 'Child' being caught by
+// an earlier handler of type 'Base'. Congrats clang, you've just
+// diagnosed the behavior under test.
+#if defined(__clang__)
+#pragma clang diagnostic ignored "-Wexceptions"
+#endif
+
 #if __has_feature(cxx_nullptr)
 
 struct A {};

Modified: libcxxabi/trunk/test/catch_ptr.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/test/catch_ptr.pass.cpp?rev=272819&r1=272818&r2=272819&view=diff
==============================================================================
--- libcxxabi/trunk/test/catch_ptr.pass.cpp (original)
+++ libcxxabi/trunk/test/catch_ptr.pass.cpp Wed Jun 15 14:07:19 2016
@@ -19,6 +19,13 @@
 #include <stdlib.h>
 #include <assert.h>
 
+// Clang emits  warnings about exceptions of type 'Child' being caught by
+// an earlier handler of type 'Base'. Congrats clang, you've just
+// diagnosed the behavior under test.
+#if defined(__clang__)
+#pragma clang diagnostic ignored "-Wexceptions"
+#endif
+
 struct B
 {
     static int count;

Modified: libcxxabi/trunk/test/catch_ptr_02.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/test/catch_ptr_02.pass.cpp?rev=272819&r1=272818&r2=272819&view=diff
==============================================================================
--- libcxxabi/trunk/test/catch_ptr_02.pass.cpp (original)
+++ libcxxabi/trunk/test/catch_ptr_02.pass.cpp Wed Jun 15 14:07:19 2016
@@ -11,6 +11,13 @@
 
 #include <cassert>
 
+// Clang emits  warnings about exceptions of type 'Child' being caught by
+// an earlier handler of type 'Base'. Congrats clang, you've just
+// diagnosed the behavior under test.
+#if defined(__clang__)
+#pragma clang diagnostic ignored "-Wexceptions"
+#endif
+
 #if __cplusplus < 201103L
 #define DISABLE_NULLPTR_TESTS
 #endif

Modified: libcxxabi/trunk/test/dynamic_cast3.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/test/dynamic_cast3.pass.cpp?rev=272819&r1=272818&r2=272819&view=diff
==============================================================================
--- libcxxabi/trunk/test/dynamic_cast3.pass.cpp (original)
+++ libcxxabi/trunk/test/dynamic_cast3.pass.cpp Wed Jun 15 14:07:19 2016
@@ -10,6 +10,12 @@
 #include <cassert>
 #include "support/timer.hpp"
 
+// This test explicitly tests dynamic cast with types that have inaccessible
+// bases.
+#if defined(__clang__)
+#pragma clang diagnostic ignored "-Winaccessible-base"
+#endif
+
 /*
 
 A1   A2   A3

Modified: libcxxabi/trunk/test/dynamic_cast5.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/test/dynamic_cast5.pass.cpp?rev=272819&r1=272818&r2=272819&view=diff
==============================================================================
--- libcxxabi/trunk/test/dynamic_cast5.pass.cpp (original)
+++ libcxxabi/trunk/test/dynamic_cast5.pass.cpp Wed Jun 15 14:07:19 2016
@@ -10,6 +10,12 @@
 #include <cassert>
 #include "support/timer.hpp"
 
+// This test explicitly tests dynamic cast with types that have inaccessible
+// bases.
+#if defined(__clang__)
+#pragma clang diagnostic ignored "-Winaccessible-base"
+#endif
+
 namespace t1
 {
 

Modified: libcxxabi/trunk/test/inherited_exception.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/test/inherited_exception.pass.cpp?rev=272819&r1=272818&r2=272819&view=diff
==============================================================================
--- libcxxabi/trunk/test/inherited_exception.pass.cpp (original)
+++ libcxxabi/trunk/test/inherited_exception.pass.cpp Wed Jun 15 14:07:19 2016
@@ -27,6 +27,13 @@
 
 // UNSUPPORTED: libcxxabi-no-exceptions
 
+// Clang emits  warnings about exceptions of type 'Child' being caught by
+// an earlier handler of type 'Base'. Congrats clang, you've just
+// diagnosed the behavior under test.
+#if defined(__clang__)
+#pragma clang diagnostic ignored "-Wexceptions"
+#endif
+
 #include <assert.h>
 
 struct Base {




More information about the cfe-commits mailing list