[compiler-rt] [compiler-rt] madvise interception (PR #76562)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 29 03:35:30 PST 2023
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 5c37e711df6b81c2b669fb8a0d8b15f7a79e6e4a db1882e3a6306c2bbda6c225954a01d4266919e8 -- compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
``````````
</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 bfd72c5897..5ef7b98d36 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
@@ -7506,11 +7506,11 @@ INTERCEPTOR(int, madvise, uptr addr, SIZE_T sz, int advice) {
COMMON_INTERCEPTOR_ENTER(ctx, madvise, addr, sz, advice);
return REAL(madvise)(addr, sz, advice);
}
-#define INIT_MMAP \
- COMMON_INTERCEPT_FUNCTION(mmap); \
- COMMON_INTERCEPT_FUNCTION(munmap); \
- COMMON_INTERCEPT_FUNCTION(mprotect); \
- COMMON_INTERCEPT_FUNCTION(madvise);
+# define INIT_MMAP \
+ COMMON_INTERCEPT_FUNCTION(mmap); \
+ COMMON_INTERCEPT_FUNCTION(munmap); \
+ COMMON_INTERCEPT_FUNCTION(mprotect); \
+ COMMON_INTERCEPT_FUNCTION(madvise);
#else
#define INIT_MMAP
#endif
``````````
</details>
https://github.com/llvm/llvm-project/pull/76562
More information about the llvm-commits
mailing list