[Lldb-commits] [lldb] [NFCI][lldb][test] Enable GNU POSIX extensions where necessary (PR #166768)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Nov 6 05:13:30 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 origin/main HEAD --extensions c -- lldb/test/API/commands/expression/call-restarts/lotta-signals.c lldb/test/API/driver/quit_speed/main.c lldb/test/API/functionalities/process_group/main.c lldb/test/API/lang/c/tls_globals/a.c lldb/test/API/lang/c/tls_globals/main.c lldb/test/Shell/Commands/Inputs/sigchld.c --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/test/API/commands/expression/call-restarts/lotta-signals.c b/lldb/test/API/commands/expression/call-restarts/lotta-signals.c
index 149ceb787..1f5f668b3 100644
--- a/lldb/test/API/commands/expression/call-restarts/lotta-signals.c
+++ b/lldb/test/API/commands/expression/call-restarts/lotta-signals.c
@@ -50,9 +50,7 @@ call_me_nosig (int some_value)
return some_value;
}
-int
-main ()
-{
+int main() {
int ret_val;
signal (SIGCHLD, sigchld_handler);
@@ -61,5 +59,4 @@ main ()
ret_val = call_me_nosig (10);
return 0;
-
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/166768
More information about the lldb-commits
mailing list