[libcxx-commits] [libcxx] abf80b5 - [libc++][IWYU] Remove `std::move` header in `std::for_each` (#164272)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Oct 21 08:03:14 PDT 2025


Author: Connector Switch
Date: 2025-10-21T15:03:09Z
New Revision: abf80b54bc752dc44f821da1fa9d2d3117a3c8c0

URL: https://github.com/llvm/llvm-project/commit/abf80b54bc752dc44f821da1fa9d2d3117a3c8c0
DIFF: https://github.com/llvm/llvm-project/commit/abf80b54bc752dc44f821da1fa9d2d3117a3c8c0.diff

LOG: [libc++][IWYU] Remove `std::move` header in `std::for_each` (#164272)

It seems this was accidentally included; there's no use of std::move in
this header.

Added: 
    

Modified: 
    libcxx/include/__algorithm/for_each.h

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__algorithm/for_each.h b/libcxx/include/__algorithm/for_each.h
index e31fcae83a332..6fb66d25a2462 100644
--- a/libcxx/include/__algorithm/for_each.h
+++ b/libcxx/include/__algorithm/for_each.h
@@ -16,15 +16,11 @@
 #include <__iterator/segmented_iterator.h>
 #include <__type_traits/enable_if.h>
 #include <__type_traits/invoke.h>
-#include <__utility/move.h>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
 #  pragma GCC system_header
 #endif
 
-_LIBCPP_PUSH_MACROS
-#include <__undef_macros>
-
 _LIBCPP_BEGIN_NAMESPACE_STD
 
 template <class _InputIterator, class _Sent, class _Func, class _Proj>
@@ -60,6 +56,4 @@ for_each(_InputIterator __first, _InputIterator __last, _Func __f) {
 
 _LIBCPP_END_NAMESPACE_STD
 
-_LIBCPP_POP_MACROS
-
 #endif // _LIBCPP___ALGORITHM_FOR_EACH_H


        


More information about the libcxx-commits mailing list