[libc-commits] [libc] [libc] Add unistd overlay (PR #118882)
via libc-commits
libc-commits at lists.llvm.org
Thu Dec 5 13:59:05 PST 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 0adff0af20c7d9bae8bd8bdf402506c10369ead1 8e2299c3e941b49027333b4cdd9542bfb5116e16 --extensions h -- libc/hdr/unistd_overlay.h libc/hdr/unistd_macros.h libc/src/unistd/getcwd.h libc/src/unistd/pread.h libc/src/unistd/read.h libc/src/unistd/readlink.h libc/src/unistd/readlinkat.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/hdr/unistd_overlay.h b/libc/hdr/unistd_overlay.h
index f2c9ed8e34..1b837ca531 100644
--- a/libc/hdr/unistd_overlay.h
+++ b/libc/hdr/unistd_overlay.h
@@ -1,4 +1,5 @@
-//===-- Including unistd.h in overlay mode ---------------------------------===//
+//===-- Including unistd.h in overlay mode
+//---------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
diff --git a/libc/src/unistd/getcwd.h b/libc/src/unistd/getcwd.h
index 8331944490..36ca48141b 100644
--- a/libc/src/unistd/getcwd.h
+++ b/libc/src/unistd/getcwd.h
@@ -9,8 +9,8 @@
#ifndef LLVM_LIBC_SRC_UNISTD_GETCWD_H
#define LLVM_LIBC_SRC_UNISTD_GETCWD_H
-#include "src/__support/macros/config.h"
#include "hdr/unistd_macros.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/unistd/pread.h b/libc/src/unistd/pread.h
index e0bdc471b1..e2cfce6b53 100644
--- a/libc/src/unistd/pread.h
+++ b/libc/src/unistd/pread.h
@@ -9,8 +9,8 @@
#ifndef LLVM_LIBC_SRC_UNISTD_PREAD_H
#define LLVM_LIBC_SRC_UNISTD_PREAD_H
-#include "src/__support/macros/config.h"
#include "hdr/unistd_macros.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/unistd/read.h b/libc/src/unistd/read.h
index 3d2ecd556d..a12c49e425 100644
--- a/libc/src/unistd/read.h
+++ b/libc/src/unistd/read.h
@@ -9,8 +9,8 @@
#ifndef LLVM_LIBC_SRC_UNISTD_READ_H
#define LLVM_LIBC_SRC_UNISTD_READ_H
-#include "src/__support/macros/config.h"
#include "hdr/unistd_macros.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/unistd/readlink.h b/libc/src/unistd/readlink.h
index 5629361505..9047097f46 100644
--- a/libc/src/unistd/readlink.h
+++ b/libc/src/unistd/readlink.h
@@ -9,8 +9,8 @@
#ifndef LLVM_LIBC_SRC_UNISTD_READLINK_H
#define LLVM_LIBC_SRC_UNISTD_READLINK_H
-#include "src/__support/macros/config.h"
#include "hdr/unistd_macros.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/unistd/readlinkat.h b/libc/src/unistd/readlinkat.h
index 2e0e33f775..10fd8bb6a1 100644
--- a/libc/src/unistd/readlinkat.h
+++ b/libc/src/unistd/readlinkat.h
@@ -9,8 +9,8 @@
#ifndef LLVM_LIBC_SRC_UNISTD_READLINKAT_H
#define LLVM_LIBC_SRC_UNISTD_READLINKAT_H
-#include "src/__support/macros/config.h"
#include "hdr/unistd_macros.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
``````````
</details>
https://github.com/llvm/llvm-project/pull/118882
More information about the libc-commits
mailing list