[Openmp-commits] [openmp] [OpenMP] Add support for Solaris (PR #70593)

via Openmp-commits openmp-commits at lists.llvm.org
Sun Oct 29 06:05:44 PDT 2023


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 640274ff1fe17852615564a80d9f8c69b67f1d59 808764675f3cc37f9b2e0f3f31372be93ada6b84 -- clang/lib/Driver/ToolChains/Solaris.cpp clang/test/Driver/fopenmp.c openmp/runtime/src/kmp.h openmp/runtime/src/kmp_ftn_entry.h openmp/runtime/src/kmp_platform.h openmp/runtime/src/kmp_runtime.cpp openmp/runtime/src/z_Linux_util.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/openmp/runtime/src/z_Linux_util.cpp b/openmp/runtime/src/z_Linux_util.cpp
index c3c8f33b3..82e2ad5e5 100644
--- a/openmp/runtime/src/z_Linux_util.cpp
+++ b/openmp/runtime/src/z_Linux_util.cpp
@@ -73,10 +73,11 @@ struct kmp_sys_timer {
 };
 
 #ifdef KMP_OS_SOLARIS
-#define TIMEVAL_TO_TIMESPEC(tv, ts) do {                                \
-        (ts)->tv_sec = (tv)->tv_sec;                                    \
-        (ts)->tv_nsec = (tv)->tv_usec * 1000;                           \
-} while (0)
+#define TIMEVAL_TO_TIMESPEC(tv, ts)                                            \
+  do {                                                                         \
+    (ts)->tv_sec = (tv)->tv_sec;                                               \
+    (ts)->tv_nsec = (tv)->tv_usec * 1000;                                      \
+  } while (0)
 #endif
 
 // Convert timespec to nanoseconds.

``````````

</details>


https://github.com/llvm/llvm-project/pull/70593


More information about the Openmp-commits mailing list