[Lldb-commits] [lldb] 1079f7a - [NFCI][lldb][test] Add missing <functional> includes (#165772)

via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 30 14:15:24 PDT 2025


Author: Raul Tambre
Date: 2025-10-30T23:15:19+02:00
New Revision: 1079f7a66ad7bbaf845fb3bd97c00c6b17169d54

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

LOG: [NFCI][lldb][test] Add missing <functional> includes (#165772)

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

Added: 
    

Modified: 
    lldb/test/Shell/Register/Inputs/x86-multithread-read.cpp
    lldb/test/Shell/Register/Inputs/x86-multithread-write.cpp

Removed: 
    


################################################################################
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>
 


        


More information about the lldb-commits mailing list