[libcxx-commits] [libcxx] f221d90 - [libc++] IWYU to fix Modules complaints about _LIBCPP_ASSERT. NFCI.
Arthur O'Dwyer via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Aug 6 06:22:15 PDT 2021
Author: Arthur O'Dwyer
Date: 2021-08-06T09:20:59-04:00
New Revision: f221d905b131158cbe3cbc4320d1ecd1376c3f22
URL: https://github.com/llvm/llvm-project/commit/f221d905b131158cbe3cbc4320d1ecd1376c3f22
DIFF: https://github.com/llvm/llvm-project/commit/f221d905b131158cbe3cbc4320d1ecd1376c3f22.diff
LOG: [libc++] IWYU to fix Modules complaints about _LIBCPP_ASSERT. NFCI.
This fixes all places that used _LIBCPP_ASSERT without including <__debug>.
git grep -l _LIBCPP_ASSERT | xargs git grep -L __debug
Added:
Modified:
libcxx/include/__algorithm/sample.h
libcxx/include/__functional/function.h
libcxx/include/__ranges/drop_view.h
libcxx/include/__ranges/view_interface.h
Removed:
################################################################################
diff --git a/libcxx/include/__algorithm/sample.h b/libcxx/include/__algorithm/sample.h
index 2aac6ffa8ceba..33264c4ea3a7e 100644
--- a/libcxx/include/__algorithm/sample.h
+++ b/libcxx/include/__algorithm/sample.h
@@ -9,8 +9,9 @@
#ifndef _LIBCPP___ALGORITHM_SAMPLE_H
#define _LIBCPP___ALGORITHM_SAMPLE_H
-#include <__config>
#include <__algorithm/min.h>
+#include <__config>
+#include <__debug>
#include <__random/uniform_int_distribution.h>
#include <iterator>
diff --git a/libcxx/include/__functional/function.h b/libcxx/include/__functional/function.h
index ba629e1d145e4..baa0135876be2 100644
--- a/libcxx/include/__functional/function.h
+++ b/libcxx/include/__functional/function.h
@@ -11,6 +11,7 @@
#define _LIBCPP___FUNCTIONAL_FUNCTION_H
#include <__config>
+#include <__debug>
#include <__functional/binary_function.h>
#include <__functional/invoke.h>
#include <__functional/unary_function.h>
diff --git a/libcxx/include/__ranges/drop_view.h b/libcxx/include/__ranges/drop_view.h
index 099fd227111d5..6d1a5a2efff66 100644
--- a/libcxx/include/__ranges/drop_view.h
+++ b/libcxx/include/__ranges/drop_view.h
@@ -10,6 +10,7 @@
#define _LIBCPP___RANGES_DROP_VIEW_H
#include <__config>
+#include <__debug>
#include <__iterator/concepts.h>
#include <__iterator/iterator_traits.h>
#include <__iterator/next.h>
diff --git a/libcxx/include/__ranges/view_interface.h b/libcxx/include/__ranges/view_interface.h
index 62cc5fd243622..3c12d1a16120a 100644
--- a/libcxx/include/__ranges/view_interface.h
+++ b/libcxx/include/__ranges/view_interface.h
@@ -10,6 +10,7 @@
#define _LIBCPP___RANGES_VIEW_INTERFACE_H
#include <__config>
+#include <__debug>
#include <__iterator/concepts.h>
#include <__iterator/iterator_traits.h>
#include <__iterator/prev.h>
More information about the libcxx-commits
mailing list