[compiler-rt] [compiler-rt] intercept macOs's freadlink call. (PR #83679)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 2 07:51:24 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 1f613bce19ea78789934b2a47be8c6a13925f0fa e166d0f9f06362747f6ce073aaec10a5e4b3e11c -- compiler-rt/test/sanitizer_common/TestCases/Darwin/freadlink.c compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
index 9a43ada118..52b48594ea 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
@@ -10252,7 +10252,7 @@ INTERCEPTOR(int, cpuset_getaffinity, int level, int which, __int64_t id, SIZE_T
#if SANITIZER_INTERCEPT_FREADLINK
INTERCEPTOR(SSIZE_T, freadlink, int fd, char *buf, SIZE_T bufsiz) {
- void* ctx;
+ void *ctx;
COMMON_INTERCEPTOR_ENTER(ctx, freadlink, fd, buf, bufsiz);
COMMON_INTERCEPTOR_FD_ACCESS(ctx, fd);
SSIZE_T res = REAL(freadlink)(fd, buf, bufsiz);
@@ -10263,9 +10263,9 @@ INTERCEPTOR(SSIZE_T, freadlink, int fd, char *buf, SIZE_T bufsiz) {
return res;
}
-#define INIT_FREADLINK COMMON_INTERCEPT_FUNCTION(freadlink)
+# define INIT_FREADLINK COMMON_INTERCEPT_FUNCTION(freadlink)
#else
-#define INIT_FREADLINK
+# define INIT_FREADLINK
#endif
#include "sanitizer_common_interceptors_netbsd_compat.inc"
``````````
</details>
https://github.com/llvm/llvm-project/pull/83679
More information about the llvm-commits
mailing list