[compiler-rt] [compiler-rt][tysan] adding posix strndup interception. (PR #122255)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 9 11:05:26 PST 2025
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 a261eee61200cb6aa3eac0e7dc03940a6afd7d54 e84de356e85bf2410d0fe857fb61111f088be715 --extensions cpp,c -- compiler-rt/test/tysan/strndup.c compiler-rt/lib/tysan/tysan_interceptors.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/test/tysan/strndup.c b/compiler-rt/test/tysan/strndup.c
index 453d6e0466..be5d514148 100644
--- a/compiler-rt/test/tysan/strndup.c
+++ b/compiler-rt/test/tysan/strndup.c
@@ -1,8 +1,8 @@
// RUN: %clang_tysan -O0 %s -o %t && %run %t >%t.out 2>&1
// RUN: FileCheck %s < %t.out
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <stdio.h>
int main() {
long val = 32167;
``````````
</details>
https://github.com/llvm/llvm-project/pull/122255
More information about the llvm-commits
mailing list