[Lldb-commits] [lldb] [LLDB] Make the thread list for SBSaveCoreOptions iterable (PR #122541)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Jan 10 16:16:33 PST 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 91892e8fa3830ed6590eda0bc62e2a2ea8df8872 d848e954f969fcbb1d09b8dcca328dc1854337a8 --extensions cpp,h -- lldb/include/lldb/API/SBSaveCoreOptions.h lldb/include/lldb/API/SBThreadCollection.h lldb/include/lldb/Symbol/SaveCoreOptions.h lldb/source/API/SBSaveCoreOptions.cpp lldb/source/Symbol/SaveCoreOptions.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/source/Symbol/SaveCoreOptions.cpp b/lldb/source/Symbol/SaveCoreOptions.cpp
index 743114accf..84afc585a8 100644
--- a/lldb/source/Symbol/SaveCoreOptions.cpp
+++ b/lldb/source/Symbol/SaveCoreOptions.cpp
@@ -116,7 +116,8 @@ const MemoryRanges &SaveCoreOptions::GetCoreFileMemoryRanges() const {
}
lldb::ThreadCollectionSP SaveCoreOptions::GetThreadsToSave() const {
- lldb::ThreadCollectionSP threadcollection_sp = std::make_shared<ThreadCollection>();
+ lldb::ThreadCollectionSP threadcollection_sp =
+ std::make_shared<ThreadCollection>();
for (const auto &thread : m_threads_to_save) {
threadcollection_sp->AddThread(thread.second);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/122541
More information about the lldb-commits
mailing list