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,c --
libunwind/src/Unwind-sjlj.c libunwind/src/config.h --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/libunwind/src/Unwind-sjlj.c b/libunwind/src/Unwind-sjlj.c
index 0cc31116d..f3904d926 100644
--- a/libunwind/src/Unwind-sjlj.c
+++ b/libunwind/src/Unwind-sjlj.c
@@ -73,7 +73,6 @@ struct _Unwind_FunctionContext {
# endif
#endif
-
#if defined(__APPLE__)
#include <System/pthread_machdep.h>
#else
@@ -98,7 +97,6 @@ __Unwind_SjLj_SetTopOfFunctionStack(struct
_Unwind_FunctionContext *fc) {
#endif
}
-
/// Called at start of each function that catches exceptions
_LIBUNWIND_EXPORT void
_Unwind_SjLj_Register(struct _Unwind_FunctionContext *fc) {
diff --git a/libunwind/src/config.h b/libunwind/src/config.h
index 8730d6004..edb2c5bfb 100644
--- a/libunwind/src/config.h
+++ b/libunwind/src/config.h
@@ -22,11 +22,11 @@
// Platform specific configuration defines.
#ifdef __APPLE__
- #define _LIBUNWIND_SUPPORT_COMPACT_UNWIND 1
- #define _LIBUNWIND_SUPPORT_DWARF_UNWIND 1
- #if defined(__aarch64__) || defined(__arm64__) || defined(__arm64e__)
- #define _LIBUNWIND_TRACE_RET_INJECT 1
- #endif
+#define _LIBUNWIND_SUPPORT_COMPACT_UNWIND 1
+#define _LIBUNWIND_SUPPORT_DWARF_UNWIND 1
+#if defined(__aarch64__) || defined(__arm64__) || defined(__arm64e__)
+#define _LIBUNWIND_TRACE_RET_INJECT 1
+#endif
#elif defined(_WIN32)
#ifdef __SEH__
#define _LIBUNWIND_SUPPORT_SEH_UNWIND 1
``````````
</details>
https://github.com/llvm/llvm-project/pull/172507
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits