[llvm] [OpenMP] Fix redefining `stdint.h` types (PR #108607)

via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 13 10:14:26 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 fffc7fb7ad48d64d164565fdf54bec25267c9d22 145a3b06e96bc5bfcd916ae2658138305774c860 --extensions h -- offload/DeviceRTL/include/DeviceTypes.h offload/include/Shared/Environment.h offload/include/Shared/Utils.h
``````````

</details>

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

``````````diff
diff --git a/offload/DeviceRTL/include/DeviceTypes.h b/offload/DeviceRTL/include/DeviceTypes.h
index 8b8921bb4c..259bc008f9 100644
--- a/offload/DeviceRTL/include/DeviceTypes.h
+++ b/offload/DeviceRTL/include/DeviceTypes.h
@@ -12,8 +12,8 @@
 #ifndef OMPTARGET_TYPES_H
 #define OMPTARGET_TYPES_H
 
-#include <stdint.h>
 #include <stddef.h>
+#include <stdint.h>
 
 // Tell the compiler that we do not have any "call-like" inline assembly in the
 // device rutime. That means we cannot have inline assembly which will call

``````````

</details>


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


More information about the llvm-commits mailing list