[llvm-branch-commits] [compiler-rt] [TySan] Improved compatability for tests (PR #96507)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Nov 27 08:00:17 PST 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 8e6e62d0dee48a696afd0c7d53d74eaccef97b5e 11c62d601626d9da1fb3ed0c9cadab2d106681ab --extensions cpp,c -- compiler-rt/test/tysan/violation-pr45282.c compiler-rt/test/tysan/violation-pr47137.c compiler-rt/test/tysan/violation-pr62544.c compiler-rt/test/tysan/violation-pr62828.cpp compiler-rt/test/tysan/violation-pr68655.cpp compiler-rt/test/tysan/violation-pr86685.c
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/test/tysan/violation-pr47137.c b/compiler-rt/test/tysan/violation-pr47137.c
index 72693afe66..e488c23fe1 100644
--- a/compiler-rt/test/tysan/violation-pr47137.c
+++ b/compiler-rt/test/tysan/violation-pr47137.c
@@ -2,9 +2,9 @@
 // RUN: FileCheck %s < %t.out
 
 // https://github.com/llvm/llvm-project/issues/47137
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <stdint.h>
 
 void f(int m) {
   int n = (4 * m + 2) / 3;

``````````

</details>


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


More information about the llvm-branch-commits mailing list