[compiler-rt] sanitizer_common: add unsupported test for free_sized and free_aligned_sized from C23 (PR #144727)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 18 08:30:42 PDT 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 HEAD~1 HEAD --extensions c -- compiler-rt/test/sanitizer_common/TestCases/Linux/free_aligned_sized.c compiler-rt/test/sanitizer_common/TestCases/Linux/free_sized.c
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/free_aligned_sized.c b/compiler-rt/test/sanitizer_common/TestCases/Linux/free_aligned_sized.c
index 27cc8752f..f4c6c0f97 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/free_aligned_sized.c
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/free_aligned_sized.c
@@ -4,10 +4,10 @@
 #include <stddef.h>
 #include <stdlib.h>
 
-extern void free_aligned_sized(void* p, size_t alignment, size_t size);
+extern void free_aligned_sized(void *p, size_t alignment, size_t size);
 
 int main() {
   volatile void *p = aligned_alloc(128, 1024);
-  free_aligned_sized((void*)p, 128, 1024);
+  free_aligned_sized((void *)p, 128, 1024);
   return 0;
 }
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/free_sized.c b/compiler-rt/test/sanitizer_common/TestCases/Linux/free_sized.c
index b3a469b83..0ee228968 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/free_sized.c
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/free_sized.c
@@ -6,10 +6,10 @@
 
 extern void *aligned_alloc(size_t alignment, size_t size);
 
-extern void free_sized(void* p, size_t size);
+extern void free_sized(void *p, size_t size);
 
 int main() {
   volatile void *p = malloc(64);
-  free_sized((void*)p, 64);
+  free_sized((void *)p, 64);
   return 0;
 }

``````````

</details>


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


More information about the llvm-commits mailing list