Skip to content

Conversation

@c8ef
Copy link
Contributor

@c8ef c8ef commented Oct 21, 2025

No description provided.

@c8ef c8ef requested a review from a team as a code owner October 21, 2025 15:39
@llvmbot llvmbot added the libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. label Oct 21, 2025
@llvmbot
Copy link
Member

llvmbot commented Oct 21, 2025

@llvm/pr-subscribers-libcxx

Author: Connector Switch (c8ef)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/164447.diff

1 Files Affected:

  • (modified) libcxx/include/__cxx03/__algorithm/for_each.h (-6)
diff --git a/libcxx/include/__cxx03/__algorithm/for_each.h b/libcxx/include/__cxx03/__algorithm/for_each.h
index d160a9eddc50b..1ffb0137c0af7 100644
--- a/libcxx/include/__cxx03/__algorithm/for_each.h
+++ b/libcxx/include/__cxx03/__algorithm/for_each.h
@@ -14,15 +14,11 @@
 #include <__cxx03/__config>
 #include <__cxx03/__iterator/segmented_iterator.h>
 #include <__cxx03/__type_traits/enable_if.h>
-#include <__cxx03/__utility/move.h>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
 #  pragma GCC system_header
 #endif
 
-_LIBCPP_PUSH_MACROS
-#include <__cxx03/__undef_macros>
-
 _LIBCPP_BEGIN_NAMESPACE_STD
 
 template <class _InputIterator, class _Function>
@@ -34,6 +30,4 @@ _LIBCPP_HIDE_FROM_ABI _Function for_each(_InputIterator __first, _InputIterator
 
 _LIBCPP_END_NAMESPACE_STD
 
-_LIBCPP_POP_MACROS
-
 #endif // _LIBCPP___CXX03___ALGORITHM_FOR_EACH_H

@c8ef c8ef merged commit 4120496 into llvm:main Oct 22, 2025
80 checks passed
@c8ef c8ef deleted the move-for-each-03 branch October 22, 2025 03:14
Copy link
Contributor

@philnik777 philnik777 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't have been landed. We should fix the C++03 headers, not back-port NFC changes.

@c8ef
Copy link
Contributor Author

c8ef commented Oct 22, 2025

This shouldn't have been landed.

Sorry, I will wait for second approval on this next time.

We should fix the C++03 headers, not back-port NFC changes.

I'm not sure I follow. Do you mean we should only backport functional changes?

@philnik777
Copy link
Contributor

This shouldn't have been landed.

Sorry, I will wait for second approval on this next time.

No worries, it's not super clear what's up with the C++03 headers for most people.

We should fix the C++03 headers, not back-port NFC changes.

I'm not sure I follow. Do you mean we should only backport functional changes?

Yes. they're currently not quite working, so we should first fix them, and if we deem it worth it we can clean them up afterwards.

Lukacma pushed a commit to Lukacma/llvm-project that referenced this pull request Oct 29, 2025
aokblast pushed a commit to aokblast/llvm-project that referenced this pull request Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants