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 960b4aa6dab69125778f230c4c94f2d19c96cc87 6808d20b198bba4f2e062094b89cfc13eac49f85 -- libunwind/test/floatregister.pass.cpp libunwind/test/forceunwind.pass.cpp libunwind/test/signal_unwind.pass.cpp libunwind/test/unwind_leaffunction.pass.cpp `````````` </details> <details> <summary> View the diff from clang-format here. </summary> ``````````diff diff --git a/libunwind/test/floatregister.pass.cpp b/libunwind/test/floatregister.pass.cpp index e4657c63fd..fb822363d4 100644 --- a/libunwind/test/floatregister.pass.cpp +++ b/libunwind/test/floatregister.pass.cpp @@ -28,7 +28,8 @@ _Unwind_Reason_Code frame_handler(struct _Unwind_Context *ctx, void *arg) { // Unwind until the main is reached, above frames depend on the platform and // architecture. uintptr_t ip = _Unwind_GetIP(ctx); - if (ip >= (uintptr_t)&__start_main_func && ip < (uintptr_t)&__stop_main_func) { + if (ip >= (uintptr_t)&__start_main_func && + ip < (uintptr_t)&__stop_main_func) { _Exit(0); } diff --git a/libunwind/test/forceunwind.pass.cpp b/libunwind/test/forceunwind.pass.cpp index feb71fb769..344034e1ea 100644 --- a/libunwind/test/forceunwind.pass.cpp +++ b/libunwind/test/forceunwind.pass.cpp @@ -50,7 +50,8 @@ _Unwind_Reason_Code stop(int version, _Unwind_Action actions, // Unwind until the main is reached, above frames depend on the platform and // architecture. uintptr_t ip = _Unwind_GetIP(context); - if (ip >= (uintptr_t)&__start_main_func && ip < (uintptr_t)&__stop_main_func) { + if (ip >= (uintptr_t)&__start_main_func && + ip < (uintptr_t)&__stop_main_func) { _Exit(0); } diff --git a/libunwind/test/signal_unwind.pass.cpp b/libunwind/test/signal_unwind.pass.cpp index 715299e749..beb1514fb2 100644 --- a/libunwind/test/signal_unwind.pass.cpp +++ b/libunwind/test/signal_unwind.pass.cpp @@ -42,7 +42,8 @@ _Unwind_Reason_Code frame_handler(struct _Unwind_Context* ctx, void* arg) { // Unwind until the main is reached, above frames depend on the platform and // architecture. uintptr_t ip = _Unwind_GetIP(ctx); - if (ip >= (uintptr_t)&__start_main_func && ip < (uintptr_t)&__stop_main_func) { + if (ip >= (uintptr_t)&__start_main_func && + ip < (uintptr_t)&__stop_main_func) { _Exit(0); } @@ -55,7 +56,7 @@ void signal_handler(int signum) { _Exit(-1); } -__attribute__((section("main_func"))) int main(int, char**) { +__attribute__((section("main_func"))) int main(int, char **) { signal(SIGUSR1, signal_handler); kill(getpid(), SIGUSR1); return -2; diff --git a/libunwind/test/unwind_leaffunction.pass.cpp b/libunwind/test/unwind_leaffunction.pass.cpp index 5826ad2ba9..7415441f50 100644 --- a/libunwind/test/unwind_leaffunction.pass.cpp +++ b/libunwind/test/unwind_leaffunction.pass.cpp @@ -42,7 +42,8 @@ _Unwind_Reason_Code frame_handler(struct _Unwind_Context* ctx, void* arg) { // Unwind until the main is reached, above frames depend on the platform and // architecture. uintptr_t ip = _Unwind_GetIP(ctx); - if (ip >= (uintptr_t)&__start_main_func && ip < (uintptr_t)&__stop_main_func) { + if (ip >= (uintptr_t)&__start_main_func && + ip < (uintptr_t)&__stop_main_func) { _Exit(0); } @@ -68,7 +69,7 @@ __attribute__((noinline)) void crashing_leaf_func(int do_trap) { __builtin_trap(); } -__attribute__((section("main_func"))) int main(int, char**) { +__attribute__((section("main_func"))) int main(int, char **) { signal(SIGTRAP, signal_handler); signal(SIGILL, signal_handler); crashing_leaf_func(1); `````````` </details> https://github.com/llvm/llvm-project/pull/85097 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits