[compiler-rt] [sanitizer] Support "alloc_dealloc_mismatch" suppressions (PR #124197)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 23 13:52:21 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 c4ca87ee78fa4f1978e018e6e3a260ac9aea399d b036c4df43c713089a64af45b2c7e0b893ac42da --extensions cpp -- compiler-rt/test/asan/TestCases/suppressions-alloc-dealloc-mismatch.cpp compiler-rt/lib/asan/asan_allocator.cpp compiler-rt/lib/asan/asan_suppressions.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/compiler-rt/test/asan/TestCases/suppressions-alloc-dealloc-mismatch.cpp b/compiler-rt/test/asan/TestCases/suppressions-alloc-dealloc-mismatch.cpp
index 47b99a090b..35d92337d2 100644
--- a/compiler-rt/test/asan/TestCases/suppressions-alloc-dealloc-mismatch.cpp
+++ b/compiler-rt/test/asan/TestCases/suppressions-alloc-dealloc-mismatch.cpp
@@ -25,9 +25,7 @@ void function() {
   fprintf(stderr, "strlen ignored, len = %zu\n", len);
 }
 
-int main() {
-  function();
-}
+int main() { function(); }
 
 // CHECK-CRASH: AddressSanitizer: alloc-dealloc-mismatch
 // CHECK-CRASH-NOT: strlen ignored

``````````

</details>


https://github.com/llvm/llvm-project/pull/124197


More information about the llvm-commits mailing list