[flang-commits] [flang] [flang] Remove C++ runtime dependency from Sleep extension (PR #84911)

via flang-commits flang-commits at lists.llvm.org
Wed Mar 13 09:14:00 PDT 2024


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 ffe41819e58365dfbe85a22556c0d9d284e746b9 3cc20519472e8daeaa808a27c550d12e5891c7d1 -- flang/runtime/extensions.cpp
``````````

</details>

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

``````````diff
diff --git a/flang/runtime/extensions.cpp b/flang/runtime/extensions.cpp
index 72591b0459..ca12dc7551 100644
--- a/flang/runtime/extensions.cpp
+++ b/flang/runtime/extensions.cpp
@@ -24,8 +24,8 @@
 #ifdef _WIN32
 #define WIN32_LEAN_AND_MEAN
 #define NOMINMAX
-#include <windows.h>
 #include <synchapi.h>
+#include <windows.h>
 
 inline void CtimeBuffer(char *buffer, size_t bufsize, const time_t cur_time,
     Fortran::runtime::Terminator terminator) {

``````````

</details>


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


More information about the flang-commits mailing list