[compiler-rt] Reapply "[Sanitizers] Intercept timer_create" (#113710) (PR #116717)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 18 17:03: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 6aa74038588ed47e3fc0d829c1e7538cc110ba39 8335938d02b58cd48f8742c7a0c994989abc3e5c --extensions cpp,inc,h -- compiler-rt/lib/hwasan/hwasan_platform_interceptors.h compiler-rt/lib/msan/tests/msan_test.cpp compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/msan/tests/msan_test.cpp b/compiler-rt/lib/msan/tests/msan_test.cpp
index 88f48adcb3..351ec6559b 100644
--- a/compiler-rt/lib/msan/tests/msan_test.cpp
+++ b/compiler-rt/lib/msan/tests/msan_test.cpp
@@ -4891,7 +4891,7 @@ TEST(MemorySanitizer, timer_create) {
EXPECT_NOT_POISONED(timer);
// Make sure the timer is usable.
- struct itimerspec cur_value{};
+ struct itimerspec cur_value {};
cur_value.it_value.tv_sec = 1;
EXPECT_EQ(0, timer_settime(timer, 0, &cur_value, nullptr));
``````````
</details>
https://github.com/llvm/llvm-project/pull/116717
More information about the llvm-commits
mailing list