[libc-commits] [libc] [libc] Fix copy/paste error in file.cpp (PR #150802)

via libc-commits libc-commits at lists.llvm.org
Sun Aug 3 08:21:13 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 cpp -- libc/src/__support/File/file.cpp libc/test/src/__support/File/file_test.cpp
``````````

</details>

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

``````````diff
diff --git a/libc/test/src/__support/File/file_test.cpp b/libc/test/src/__support/File/file_test.cpp
index ba23b30b7..04ab78b07 100644
--- a/libc/test/src/__support/File/file_test.cpp
+++ b/libc/test/src/__support/File/file_test.cpp
@@ -494,8 +494,7 @@ TEST(LlvmLibcFileTest, WriteNothing) {
   ASSERT_EQ(f_nbf->close(), 0);
 }
 
-TEST(LlvmLibcFileTest, WriteSplit)
-{
+TEST(LlvmLibcFileTest, WriteSplit) {
   constexpr size_t FILE_BUFFER_SIZE = 8;
   char file_buffer[FILE_BUFFER_SIZE];
   StringFile *f =

``````````

</details>


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


More information about the libc-commits mailing list