[compiler-rt] [compiler-rt] Work around incompatible Windows definitions of (S)SIZE_T (PR #106311)

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 27 16:51:52 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 bb27dd853a713866c025a94ead8f03a1e25d1b6e 9ea84f89e7c6b9126404d1802ae0a31639dccdee --extensions h,cpp -- compiler-rt/lib/interception/interception.h compiler-rt/lib/interception/interception_type_test.cpp compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/lib/interception/interception_type_test.cpp b/compiler-rt/lib/interception/interception_type_test.cpp
index ccf555c7b1..df687c3d1a 100644
--- a/compiler-rt/lib/interception/interception_type_test.cpp
+++ b/compiler-rt/lib/interception/interception_type_test.cpp
@@ -15,7 +15,7 @@
 #include "sanitizer_common/sanitizer_type_traits.h"
 
 #if __has_include(<sys/types.h>)
-#include <sys/types.h>
+#  include <sys/types.h>
 #endif
 #include <stddef.h>
 #include <stdint.h>
@@ -44,4 +44,3 @@ COMPILER_CHECK(sizeof(::OFF64_T) == sizeof(off64_t));
   _FILE_OFFSET_BITS != 64
 COMPILER_CHECK(sizeof(::OFF_T) == sizeof(off_t));
 # endif
-

``````````

</details>


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


More information about the llvm-commits mailing list