[libc-commits] [libc] [libc] fuzz test for heap_sort (PR #100826)
via libc-commits
libc-commits at lists.llvm.org
Fri Jul 26 15:50:32 PDT 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 10ff2bcb5eaf169b0d9f6f12851ccae339a54aaf 5dbd17fe11774aa706a59ee345d2576540e4538f --extensions cpp -- libc/fuzzing/stdlib/heap_sort_fuzz.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/fuzzing/stdlib/heap_sort_fuzz.cpp b/libc/fuzzing/stdlib/heap_sort_fuzz.cpp
index 70daa7e623..7eebdcef94 100644
--- a/libc/fuzzing/stdlib/heap_sort_fuzz.cpp
+++ b/libc/fuzzing/stdlib/heap_sort_fuzz.cpp
@@ -1,4 +1,5 @@
-//===-- heap_sort_fuzz.cpp ----------------------------------------------------===//
+//===-- heap_sort_fuzz.cpp
+//----------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -37,7 +38,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
for (size_t i = 0; i < array_size; ++i)
array[i] = data_as_int[i];
- auto arr = internal::Array(reinterpret_cast<uint8_t *>(array), array_size, sizeof(int), int_compare);
+ auto arr = internal::Array(reinterpret_cast<uint8_t *>(array), array_size,
+ sizeof(int), int_compare);
internal::heap_sort(arr);
``````````
</details>
https://github.com/llvm/llvm-project/pull/100826
More information about the libc-commits
mailing list