[Lldb-commits] [lldb] [lldb] do not show misleading error when there is no frame (PR #119103)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Dec 9 09:48:29 PST 2024
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 66f9448b4b14a117141a3efd014e1240b30b741f 8e649d4a2a23a5d644761611c285c5b8d753b007 --extensions cpp -- lldb/source/API/SBFrame.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/source/API/SBFrame.cpp b/lldb/source/API/SBFrame.cpp
index 9285d21cf5..fd9134b7b1 100644
--- a/lldb/source/API/SBFrame.cpp
+++ b/lldb/source/API/SBFrame.cpp
@@ -810,9 +810,11 @@ SBValueList SBFrame::GetVariables(const lldb::SBVariablesOptions &options) {
if (num_variables) {
size_t num_produced = 0;
for (const VariableSP &variable_sp : *variable_list) {
- if (INTERRUPT_REQUESTED(dbg,
+ if (INTERRUPT_REQUESTED(
+ dbg,
"Interrupted getting frame variables with {0} of {1} "
- "produced.", num_produced, num_variables))
+ "produced.",
+ num_produced, num_variables))
return {};
if (variable_sp) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/119103
More information about the lldb-commits
mailing list