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/include/lldb/Target/ThreadList.h
lldb/include/lldb/Target/ThreadPlanStepOverBreakpoint.h
lldb/source/Target/ThreadList.cpp
lldb/source/Target/ThreadPlanStepOverBreakpoint.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/source/Target/ThreadList.cpp
b/lldb/source/Target/ThreadList.cpp
index a9018c092..995553520 100644
--- a/lldb/source/Target/ThreadList.cpp
+++ b/lldb/source/Target/ThreadList.cpp
@@ -544,11 +544,9 @@ bool ThreadList::WillResume(RunDirection &direction) {
for (auto &group : existing_bp_groups) {
if (group.second.size() > 1) {
for (ThreadSP &thread_sp : group.second) {
- RegisterThreadSteppingOverBreakpoint(group.first,
- thread_sp->GetID());
+ RegisterThreadSteppingOverBreakpoint(group.first,
thread_sp->GetID());
ThreadPlan *plan = thread_sp->GetCurrentPlan();
- if (plan &&
- plan->GetKind() == ThreadPlan::eKindStepOverBreakpoint) {
+ if (plan && plan->GetKind() == ThreadPlan::eKindStepOverBreakpoint) {
static_cast<ThreadPlanStepOverBreakpoint *>(plan)
->SetDeferReenableBreakpointSite(true);
}
@@ -657,8 +655,7 @@ bool ThreadList::WillResume(RunDirection &direction) {
// Get the breakpoint address from the step-over-breakpoint plan
ThreadPlan *current_plan = thread_sp->GetCurrentPlan();
if (current_plan &&
- current_plan->GetKind() ==
- ThreadPlan::eKindStepOverBreakpoint) {
+ current_plan->GetKind() == ThreadPlan::eKindStepOverBreakpoint) {
ThreadPlanStepOverBreakpoint *bp_plan =
static_cast<ThreadPlanStepOverBreakpoint *>(current_plan);
lldb::addr_t bp_addr = bp_plan->GetBreakpointLoadAddress();
``````````
</details>
https://github.com/llvm/llvm-project/pull/180101
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits