Skip to content

Conversation

@tambry
Copy link
Contributor

@tambry tambry commented Oct 30, 2025

std::ref() is provided in <functional> and with recent libc++ changes it no longer seems to be included transitively. Fix by including explicitly.

`std::ref()` is provided in `<functional>` and with recent libc++ changes it no longer seems to be
included transitively. Fix by including explicitly.
@tambry tambry requested a review from labath October 30, 2025 19:52
@tambry tambry self-assigned this Oct 30, 2025
@tambry tambry requested a review from JDevlieghere as a code owner October 30, 2025 19:52
@llvmbot llvmbot added the lldb label Oct 30, 2025
@llvmbot
Copy link
Member

llvmbot commented Oct 30, 2025

@llvm/pr-subscribers-lldb

Author: Raul Tambre (tambry)

Changes

std::ref() is provided in &lt;functional&gt; and with recent libc++ changes it no longer seems to be included transitively. Fix by including explicitly.


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

2 Files Affected:

  • (modified) lldb/test/Shell/Register/Inputs/x86-multithread-read.cpp (+1)
  • (modified) lldb/test/Shell/Register/Inputs/x86-multithread-write.cpp (+1)
diff --git a/lldb/test/Shell/Register/Inputs/x86-multithread-read.cpp b/lldb/test/Shell/Register/Inputs/x86-multithread-read.cpp
index c5f571fc1d2c4..0d2869c0c577c 100644
--- a/lldb/test/Shell/Register/Inputs/x86-multithread-read.cpp
+++ b/lldb/test/Shell/Register/Inputs/x86-multithread-read.cpp
@@ -1,4 +1,5 @@
 #include <cstdint>
+#include <functional>
 #include <mutex>
 #include <thread>
 
diff --git a/lldb/test/Shell/Register/Inputs/x86-multithread-write.cpp b/lldb/test/Shell/Register/Inputs/x86-multithread-write.cpp
index 320f9e938e5bf..1f4e91acc4c03 100644
--- a/lldb/test/Shell/Register/Inputs/x86-multithread-write.cpp
+++ b/lldb/test/Shell/Register/Inputs/x86-multithread-write.cpp
@@ -1,6 +1,7 @@
 #include <cinttypes>
 #include <cstdint>
 #include <cstdio>
+#include <functional>
 #include <mutex>
 #include <thread>
 

@tambry tambry merged commit 1079f7a into llvm:main Oct 30, 2025
10 of 11 checks passed
@tambry tambry deleted the lldb_missing_include branch October 30, 2025 21:15
luciechoi pushed a commit to luciechoi/llvm-project that referenced this pull request Nov 1, 2025
`std::ref()` is provided in `<functional>` and with recent libc++ changes it no longer seems to be
included transitively. Fix by including explicitly.
DEBADRIBASAK pushed a commit to DEBADRIBASAK/llvm-project that referenced this pull request Nov 3, 2025
`std::ref()` is provided in `<functional>` and with recent libc++ changes it no longer seems to be
included transitively. Fix by including explicitly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants