aboutsummaryrefslogtreecommitdiff
path: root/libcxx/include/expected
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2024-02-29 10:12:22 -0500
committerGitHub <noreply@github.com>2024-02-29 10:12:22 -0500
commit37dca605c9bd41732da010ee97ed15ad9585a37d (patch)
tree0346b61a4d8bf40addbe40bd21f36afd1087bc87 /libcxx/include/expected
parente60ebbd0001f2e66cb9f76874ddd69290e2086c1 (diff)
downloadllvm-37dca605c9bd41732da010ee97ed15ad9585a37d.zip
llvm-37dca605c9bd41732da010ee97ed15ad9585a37d.tar.gz
llvm-37dca605c9bd41732da010ee97ed15ad9585a37d.tar.bz2
[libc++] Clean up includes of <__assert> (#80091)
Originally, we used __libcpp_verbose_abort to handle assertion failures. That function was declared from all public headers. Since we don't use that mechanism anymore, we don't need to declare __libcpp_verbose_abort from all public headers, and we can clean up a lot of unnecessary includes. This patch also moves the definition of the various assertion categories to the <__assert> header, since we now rely on regular IWYU for these assertion macros. rdar://105510916
Diffstat (limited to 'libcxx/include/expected')
-rw-r--r--libcxx/include/expected1
1 files changed, 0 insertions, 1 deletions
diff --git a/libcxx/include/expected b/libcxx/include/expected
index 44d0ce6..f455ab7 100644
--- a/libcxx/include/expected
+++ b/libcxx/include/expected
@@ -38,7 +38,6 @@ namespace std {
*/
-#include <__assert> // all public C++ headers provide the assertion handler
#include <__config>
#include <__expected/bad_expected_access.h>
#include <__expected/expected.h>