[Lldb-commits] [lldb] 24fd343 - [lldb][test] TestMetadataRegisters.py: add missing include

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 30 02:47:02 PDT 2025


Author: Michael Buch
Date: 2025-06-30T10:46:17+01:00
New Revision: 24fd3437c311e42891d117a9c4cf993032561bab

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

LOG: [lldb][test] TestMetadataRegisters.py: add missing include

The macOS Clang-17 matrix bot was failing with:
```
07:33:28  /Users/ec2-user/jenkins/workspace/llvm.org/lldb-cmake-matrix/llvm-project/lldb/test/API/macosx/lc-note/additional-registers/add-lcnote.cpp:79:12: error: implicit instantiation of undefined template 'std::vector<unsigned char>'
07:33:28     79 |     payload.resize(payload_str->size(), 0);
07:33:28        |            ^
07:33:28  /Users/ec2-user/jenkins/workspace/llvm.org/lldb-cmake-matrix/clang_1706_build/include/c++/v1/iosfwd:133:28: note: template is declared here
07:33:28    133 | class _LIBCPP_TEMPLATE_VIS vector;
07:33:28        |                            ^
07:33:28  /Users/ec2-user/jenkins/workspace/llvm.org/lldb-cmake-matrix/llvm-project/lldb/test/API/macosx/lc-note/additional-registers/add-lcnote.cpp:80:19: error: implicit instantiation of undefined template 'std::vector<unsigned char>'
07:33:28     80 |     memcpy(payload.data(), payload_str->c_str(), payload_str->size());
07:33:28        |                   ^
07:33:28  /Users/ec2-user/jenkins/workspace/llvm.org/lldb-cmake-matrix/clang_1706_build/include/c++/v1/iosfwd:133:28: note: template is declared here
07:33:28    133 | class _LIBCPP_TEMPLATE_VIS vector;
07:33:28        |                            ^
07:33:28  /Users/ec2-user/jenkins/workspace/llvm.org/lldb-cmake-matrix/llvm-project/lldb/test/API/macosx/lc-note/additional-registers/add-lcnote.cpp:87:12: error: implicit instantiation of undefined template 'std::vector<unsigned char>'
07:33:28     87 |     payload.resize(sb.st_size, 0);
07:33:28        |            ^
07:33:28  /Users/ec2-user/jenkins/workspace/llvm.org/lldb-cmake-matrix/clang_1706_build/include/c++/v1/iosfwd:133:28: note: template is declared here
07:33:28    133 | class _LIBCPP_TEMPLATE_VIS vector;
```

Added: 
    

Modified: 
    lldb/test/API/macosx/lc-note/additional-registers/add-lcnote.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/macosx/lc-note/additional-registers/add-lcnote.cpp b/lldb/test/API/macosx/lc-note/additional-registers/add-lcnote.cpp
index 8d9d550a9ad72..c5ab732c0c7cc 100644
--- a/lldb/test/API/macosx/lc-note/additional-registers/add-lcnote.cpp
+++ b/lldb/test/API/macosx/lc-note/additional-registers/add-lcnote.cpp
@@ -8,6 +8,7 @@
 #include <iostream>
 #include <optional>
 #include <string>
+#include <vector>
 
 using namespace std;
 


        


More information about the lldb-commits mailing list