aboutsummaryrefslogtreecommitdiff
path: root/libcxx/include/exception
diff options
context:
space:
mode:
authorNikolas Klauser <nikolasklauser@berlin.de>2022-12-21 00:07:17 +0100
committerNikolas Klauser <nikolasklauser@berlin.de>2022-12-23 02:58:06 +0100
commite0a66116fcccd59d12485810f5311efafa134ea5 (patch)
tree0b6aadc229821727dcfd3aad5cee22255ed853ac /libcxx/include/exception
parentc41d425030dfd5cd84eb89b861e157821f2bf45f (diff)
downloadllvm-e0a66116fcccd59d12485810f5311efafa134ea5.zip
llvm-e0a66116fcccd59d12485810f5311efafa134ea5.tar.gz
llvm-e0a66116fcccd59d12485810f5311efafa134ea5.tar.bz2
[libc++] Granularize <type_traits> includes in <compare>
Reviewed By: Mordante, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D140480
Diffstat (limited to 'libcxx/include/exception')
-rw-r--r--libcxx/include/exception12
1 files changed, 11 insertions, 1 deletions
diff --git a/libcxx/include/exception b/libcxx/include/exception
index 98b355f..e0f4268 100644
--- a/libcxx/include/exception
+++ b/libcxx/include/exception
@@ -80,9 +80,15 @@ template <class E> void rethrow_if_nested(const E& e);
#include <__availability>
#include <__config>
#include <__memory/addressof.h>
+#include <__type_traits/decay.h>
+#include <__type_traits/is_base_of.h>
+#include <__type_traits/is_class.h>
+#include <__type_traits/is_convertible.h>
+#include <__type_traits/is_copy_constructible.h>
+#include <__type_traits/is_final.h>
+#include <__type_traits/is_polymorphic.h>
#include <cstddef>
#include <cstdlib>
-#include <type_traits>
#include <version>
// <vcruntime_exception.h> defines its own std::exception and std::bad_exception types,
@@ -371,4 +377,8 @@ rethrow_if_nested(const _Ep&,
} // namespace std
+#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
+# include <type_traits>
+#endif
+
#endif // _LIBCPP_EXCEPTION