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 origin/main HEAD --extensions h,cpp --
lldb/tools/lldb-dap/Handler/ScopesRequestHandler.cpp
lldb/tools/lldb-dap/Handler/VariablesRequestHandler.cpp
lldb/tools/lldb-dap/JSONUtils.cpp lldb/tools/lldb-dap/SourceBreakpoint.cpp
lldb/tools/lldb-dap/Variables.cpp lldb/tools/lldb-dap/Variables.h
lldb/unittests/DAP/VariablesTest.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/tools/lldb-dap/Variables.cpp
b/lldb/tools/lldb-dap/Variables.cpp
index 13a91f2fd..5e3225163 100644
--- a/lldb/tools/lldb-dap/Variables.cpp
+++ b/lldb/tools/lldb-dap/Variables.cpp
@@ -54,7 +54,7 @@ protocol::Scope CreateScope(const eScopeKind kind, int64_t
variablesReference,
lldb::SBValueList *Variables::GetTopLevelScope(int64_t variablesReference) {
auto iter = m_scope_kinds.find(variablesReference);
- if (iter == m_scope_kinds.end())
+ if (iter == m_scope_kinds.end())
return nullptr;
eScopeKind scope_kind = iter->second.first;
@@ -62,7 +62,7 @@ lldb::SBValueList *Variables::GetTopLevelScope(int64_t
variablesReference) {
auto frame_iter = m_frames.find(dap_frame_id);
if (frame_iter == m_frames.end())
-return nullptr;
+ return nullptr;
return frame_iter->second.GetScope(scope_kind);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/124232
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits