[compiler-rt] [sanitizer_common][NFC] Fix sanitizer_platform_limits_posix.cpp formatting (PR #180823)

via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 10 20:26:13 PST 2026


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 cpp -- compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp --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/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
index 59d74b771..11903e346 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
@@ -26,8 +26,6 @@
 
 #if SANITIZER_LINUX || SANITIZER_APPLE || SANITIZER_HAIKU
 // Must go after undef _FILE_OFFSET_BITS.
-#  include "sanitizer_glibc_version.h"
-
 #  include <arpa/inet.h>
 #  include <dirent.h>
 #  include <grp.h>
@@ -53,6 +51,8 @@
 #  include <time.h>
 #  include <wchar.h>
 
+#  include "sanitizer_glibc_version.h"
+
 #  if !SANITIZER_APPLE && !SANITIZER_HAIKU
 #    include <utmp.h>
 #  endif

``````````

</details>


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


More information about the llvm-commits mailing list