[Lldb-commits] [lldb] [NFCI][lldb][test] Add missing <functional> includes (PR #165772)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 30 12:53:10 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Raul Tambre (tambry)
<details>
<summary>Changes</summary>
`std::ref()` is provided in `<functional>` 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
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>
``````````
</details>
https://github.com/llvm/llvm-project/pull/165772
More information about the lldb-commits
mailing list