[compiler-rt] [rtsan] Add ioctl interceptor (PR #117569)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 25 07:27:55 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 a12e79a85fc18d535c58f2c82d2b2e80586e43d7 a9140ece08ecee9e59109c19f1fd97e4a48bbffe --extensions cpp -- compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp compiler-rt/lib/rtsan/tests/rtsan_test_interceptors_posix.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp b/compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp
index c3f1badac4..4303e80d74 100644
--- a/compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp
+++ b/compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp
@@ -196,7 +196,8 @@ INTERCEPTOR(int, ioctl, int filedes, unsigned long request, ...) {
// See fcntl for discussion on why we use intptr_t
// And why we read from va_args on all request types
using arg_type = intptr_t;
- static_assert(sizeof(arg_type) >= sizeof(struct ifreq *)); // used in socket ioctls
+ static_assert(sizeof(arg_type) >=
+ sizeof(struct ifreq *)); // used in socket ioctls
static_assert(sizeof(arg_type) >= sizeof(int));
va_list args;
``````````
</details>
https://github.com/llvm/llvm-project/pull/117569
More information about the llvm-commits
mailing list