[libc-commits] [libc] [libc] Implement fileno on Linux (PR #85628)

via libc-commits libc-commits at lists.llvm.org
Mon Mar 18 09:09:45 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 f1ca0b6ce85ba43faf5064e333080092b31eb4c9 9f29fd31a7070a8748c07babe836e131cd5fc792 -- libc/src/stdio/fileno.h libc/src/stdio/generic/fileno.cpp libc/test/src/stdio/fileop_test.cpp
``````````

</details>

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

``````````diff
diff --git a/libc/src/stdio/generic/fileno.cpp b/libc/src/stdio/generic/fileno.cpp
index b0694c12dc..33a8242bde 100644
--- a/libc/src/stdio/generic/fileno.cpp
+++ b/libc/src/stdio/generic/fileno.cpp
@@ -7,9 +7,9 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include "src/stdio/fileno.h"
 #include "include/llvm-libc-types/FILE.h"
 #include "src/__support/File/file.h"
-#include "src/stdio/fileno.h"
 
 namespace LIBC_NAMESPACE {
 

``````````

</details>


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


More information about the libc-commits mailing list