[Lldb-commits] [lldb] [lldb][RISCV][test] make atomic region stepping test more robust (PR #156506)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 3 06:49:01 PDT 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 origin/main HEAD --extensions c -- lldb/test/API/riscv/step/branch.c lldb/test/API/riscv/step/main.c
``````````
: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/test/API/riscv/step/main.c b/lldb/test/API/riscv/step/main.c
index 6207954b7..6649034aa 100644
--- a/lldb/test/API/riscv/step/main.c
+++ b/lldb/test/API/riscv/step/main.c
@@ -1,7 +1,7 @@
void __attribute__((naked)) cas(int *a, int *b) {
- // This atomic sequence implements a copy-and-swap function. This test should stop
- // at the first instruction, and after step instruction, we should stop at the
- // end of the sequence (on the ret instruction).
+ // This atomic sequence implements a copy-and-swap function. This test should
+ // stop at the first instruction, and after step instruction, we should stop
+ // at the end of the sequence (on the ret instruction).
asm volatile("1:\n\t"
"lr.w a2, (a0)\n\t"
"and a5, a2, a4\n\t"
``````````
</details>
https://github.com/llvm/llvm-project/pull/156506
More information about the lldb-commits
mailing list