[libc-commits] [libc] [libc] Add `ctype.h` locale variants (PR #102711)
via libc-commits
libc-commits at lists.llvm.org
Fri Aug 9 19:35:57 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 7299c7f65451c8c97d6417a3f185186e59c6e25e bf94a4d21de2e7c377c08727042ef2581ac871e2 --extensions h,cpp -- libc/include/llvm-libc-macros/locale-macros.h libc/include/llvm-libc-types/locale_t.h libc/include/llvm-libc-types/struct_lconv.h libc/src/ctype/isalnum_l.cpp libc/src/ctype/isalnum_l.h libc/src/ctype/isalpha_l.cpp libc/src/ctype/isalpha_l.h libc/src/ctype/isblank_l.cpp libc/src/ctype/isblank_l.h libc/src/ctype/iscntrl_l.cpp libc/src/ctype/iscntrl_l.h libc/src/ctype/isdigit_l.cpp libc/src/ctype/isdigit_l.h libc/src/ctype/isgraph_l.cpp libc/src/ctype/isgraph_l.h libc/src/ctype/islower_l.cpp libc/src/ctype/islower_l.h libc/src/ctype/isprint_l.cpp libc/src/ctype/isprint_l.h libc/src/ctype/ispunct_l.cpp libc/src/ctype/ispunct_l.h libc/src/ctype/isspace_l.cpp libc/src/ctype/isspace_l.h libc/src/ctype/isupper_l.cpp libc/src/ctype/isupper_l.h libc/src/ctype/isxdigit_l.cpp libc/src/ctype/isxdigit_l.h libc/src/ctype/tolower_l.cpp libc/src/ctype/tolower_l.h libc/src/ctype/toupper_l.cpp libc/src/ctype/toupper_l.h libc/src/locale/duplocale.cpp libc/src/locale/duplocale.h libc/src/locale/freelocale.cpp libc/src/locale/freelocale.h libc/src/locale/locale.cpp libc/src/locale/locale.h libc/src/locale/localeconv.cpp libc/src/locale/localeconv.h libc/src/locale/newlocale.cpp libc/src/locale/newlocale.h libc/src/locale/setlocale.cpp libc/src/locale/setlocale.h libc/src/locale/uselocale.cpp libc/src/locale/uselocale.h libc/test/src/locale/locale_test.cpp libc/test/src/locale/localeconv_test.cpp libc/src/ctype/isalnum.cpp libc/src/ctype/isalnum.h libc/src/ctype/isalpha.cpp libc/src/ctype/isalpha.h libc/src/ctype/isascii.h libc/src/ctype/isblank.cpp libc/src/ctype/isblank.h libc/src/ctype/iscntrl.cpp libc/src/ctype/iscntrl.h libc/src/ctype/isdigit.cpp libc/src/ctype/isdigit.h libc/src/ctype/isgraph.cpp libc/src/ctype/isgraph.h libc/src/ctype/islower.cpp libc/src/ctype/islower.h libc/src/ctype/isprint.cpp libc/src/ctype/isprint.h libc/src/ctype/ispunct.cpp libc/src/ctype/ispunct.h libc/src/ctype/isspace.cpp libc/src/ctype/isspace.h libc/src/ctype/isupper.cpp libc/src/ctype/isupper.h libc/src/ctype/isxdigit.cpp libc/src/ctype/isxdigit.h libc/src/ctype/toascii.h libc/src/ctype/tolower.cpp libc/src/ctype/tolower.h libc/src/ctype/toupper.cpp libc/src/ctype/toupper.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/src/ctype/isalnum.h b/libc/src/ctype/isalnum.h
index 5b55cdcf5b..91804fc652 100644
--- a/libc/src/ctype/isalnum.h
+++ b/libc/src/ctype/isalnum.h
@@ -9,8 +9,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_ISALNUM_H
#define LLVM_LIBC_SRC_CTYPE_ISALNUM_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/isalnum_l.h b/libc/src/ctype/isalnum_l.h
index bc5449b4f8..95f11bf61c 100644
--- a/libc/src/ctype/isalnum_l.h
+++ b/libc/src/ctype/isalnum_l.h
@@ -1,4 +1,5 @@
-//===-- Implementation header for isalnum_l -------------------------*-C++-*-===//
+//===-- Implementation header for isalnum_l
+//-------------------------*-C++-*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -9,8 +10,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_ISALNUM_H
#define LLVM_LIBC_SRC_CTYPE_ISALNUM_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/isalpha.h b/libc/src/ctype/isalpha.h
index 88dbb88862..ea8ca735b0 100644
--- a/libc/src/ctype/isalpha.h
+++ b/libc/src/ctype/isalpha.h
@@ -9,8 +9,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_ISALPHA_H
#define LLVM_LIBC_SRC_CTYPE_ISALPHA_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/isalpha_l.h b/libc/src/ctype/isalpha_l.h
index f46f07e2ea..71bb53130c 100644
--- a/libc/src/ctype/isalpha_l.h
+++ b/libc/src/ctype/isalpha_l.h
@@ -1,4 +1,5 @@
-//===-- Implementation header for isalpha_l -------------------------*-C++-*-===//
+//===-- Implementation header for isalpha_l
+//-------------------------*-C++-*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -9,8 +10,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_ISALPHA_H
#define LLVM_LIBC_SRC_CTYPE_ISALPHA_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/isascii.h b/libc/src/ctype/isascii.h
index df6806439f..021e8f2dd1 100644
--- a/libc/src/ctype/isascii.h
+++ b/libc/src/ctype/isascii.h
@@ -9,8 +9,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_ISASCII_H
#define LLVM_LIBC_SRC_CTYPE_ISASCII_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
#undef isascii
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/isblank.h b/libc/src/ctype/isblank.h
index 4da32b18da..e30bb3037c 100644
--- a/libc/src/ctype/isblank.h
+++ b/libc/src/ctype/isblank.h
@@ -9,8 +9,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_ISBLANK_H
#define LLVM_LIBC_SRC_CTYPE_ISBLANK_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/isblank_l.h b/libc/src/ctype/isblank_l.h
index efcb72a790..1263a130e3 100644
--- a/libc/src/ctype/isblank_l.h
+++ b/libc/src/ctype/isblank_l.h
@@ -1,4 +1,5 @@
-//===-- Implementation header for isblank_l -------------------------*-C++-*-===//
+//===-- Implementation header for isblank_l
+//-------------------------*-C++-*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -9,8 +10,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_ISBLANK_H
#define LLVM_LIBC_SRC_CTYPE_ISBLANK_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/iscntrl.h b/libc/src/ctype/iscntrl.h
index 2b3a804ca8..01af064863 100644
--- a/libc/src/ctype/iscntrl.h
+++ b/libc/src/ctype/iscntrl.h
@@ -9,8 +9,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_ISCNTRL_H
#define LLVM_LIBC_SRC_CTYPE_ISCNTRL_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/iscntrl_l.h b/libc/src/ctype/iscntrl_l.h
index 6349a750fa..27c038870e 100644
--- a/libc/src/ctype/iscntrl_l.h
+++ b/libc/src/ctype/iscntrl_l.h
@@ -1,4 +1,5 @@
-//===-- Implementation header for iscntrl_l -------------------------*-C++-*-===//
+//===-- Implementation header for iscntrl_l
+//-------------------------*-C++-*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -9,8 +10,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_ISCNTRL_H
#define LLVM_LIBC_SRC_CTYPE_ISCNTRL_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/isdigit.h b/libc/src/ctype/isdigit.h
index f0d392085a..df98460415 100644
--- a/libc/src/ctype/isdigit.h
+++ b/libc/src/ctype/isdigit.h
@@ -9,8 +9,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_ISDIGIT_H
#define LLVM_LIBC_SRC_CTYPE_ISDIGIT_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/isdigit_l.h b/libc/src/ctype/isdigit_l.h
index 3e12eda470..874b4dc4b3 100644
--- a/libc/src/ctype/isdigit_l.h
+++ b/libc/src/ctype/isdigit_l.h
@@ -1,4 +1,5 @@
-//===-- Implementation header for isdigit_l -------------------------*-C++-*-===//
+//===-- Implementation header for isdigit_l
+//-------------------------*-C++-*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -9,8 +10,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_ISDIGIT_H
#define LLVM_LIBC_SRC_CTYPE_ISDIGIT_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/isgraph.h b/libc/src/ctype/isgraph.h
index 3da3651e2a..74a74b6024 100644
--- a/libc/src/ctype/isgraph.h
+++ b/libc/src/ctype/isgraph.h
@@ -9,8 +9,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_ISGRAPH_H
#define LLVM_LIBC_SRC_CTYPE_ISGRAPH_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/isgraph_l.h b/libc/src/ctype/isgraph_l.h
index 1f947b409d..8d68cbe375 100644
--- a/libc/src/ctype/isgraph_l.h
+++ b/libc/src/ctype/isgraph_l.h
@@ -1,4 +1,5 @@
-//===-- Implementation header for isgraph_l -------------------------*-C++-*-===//
+//===-- Implementation header for isgraph_l
+//-------------------------*-C++-*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -9,8 +10,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_ISGRAPH_H
#define LLVM_LIBC_SRC_CTYPE_ISGRAPH_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/islower.h b/libc/src/ctype/islower.h
index c212bdf693..6a8abd6a8c 100644
--- a/libc/src/ctype/islower.h
+++ b/libc/src/ctype/islower.h
@@ -9,8 +9,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_ISLOWER_H
#define LLVM_LIBC_SRC_CTYPE_ISLOWER_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/islower_l.h b/libc/src/ctype/islower_l.h
index 929175d57e..c3e3b6d0c9 100644
--- a/libc/src/ctype/islower_l.h
+++ b/libc/src/ctype/islower_l.h
@@ -1,4 +1,5 @@
-//===-- Implementation header for islower_l -------------------------*-C++-*-===//
+//===-- Implementation header for islower_l
+//-------------------------*-C++-*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -9,8 +10,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_ISLOWER_H
#define LLVM_LIBC_SRC_CTYPE_ISLOWER_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/isprint.h b/libc/src/ctype/isprint.h
index 65e362913d..fc9b1db519 100644
--- a/libc/src/ctype/isprint.h
+++ b/libc/src/ctype/isprint.h
@@ -9,8 +9,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_ISPRINT_H
#define LLVM_LIBC_SRC_CTYPE_ISPRINT_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/isprint_l.h b/libc/src/ctype/isprint_l.h
index e344b90564..c05d505016 100644
--- a/libc/src/ctype/isprint_l.h
+++ b/libc/src/ctype/isprint_l.h
@@ -1,4 +1,5 @@
-//===-- Implementation header for isprint_l -------------------------*-C++-*-===//
+//===-- Implementation header for isprint_l
+//-------------------------*-C++-*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -9,8 +10,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_ISPRINT_H
#define LLVM_LIBC_SRC_CTYPE_ISPRINT_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/ispunct.h b/libc/src/ctype/ispunct.h
index b7348ebb8d..d6da6774d6 100644
--- a/libc/src/ctype/ispunct.h
+++ b/libc/src/ctype/ispunct.h
@@ -9,8 +9,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_ISPUNCT_H
#define LLVM_LIBC_SRC_CTYPE_ISPUNCT_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/ispunct_l.h b/libc/src/ctype/ispunct_l.h
index 7be3ca189f..68e0122a24 100644
--- a/libc/src/ctype/ispunct_l.h
+++ b/libc/src/ctype/ispunct_l.h
@@ -1,4 +1,5 @@
-//===-- Implementation header for ispunct_l -------------------------*-C++-*-===//
+//===-- Implementation header for ispunct_l
+//-------------------------*-C++-*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -9,8 +10,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_ISPUNCT_H
#define LLVM_LIBC_SRC_CTYPE_ISPUNCT_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/isspace.h b/libc/src/ctype/isspace.h
index fc716ac4f6..0043e63323 100644
--- a/libc/src/ctype/isspace.h
+++ b/libc/src/ctype/isspace.h
@@ -9,8 +9,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_ISSPACE_H
#define LLVM_LIBC_SRC_CTYPE_ISSPACE_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/isspace_l.h b/libc/src/ctype/isspace_l.h
index 9d030461a7..d6d9dcd365 100644
--- a/libc/src/ctype/isspace_l.h
+++ b/libc/src/ctype/isspace_l.h
@@ -1,4 +1,5 @@
-//===-- Implementation header for isspace_l -------------------------*-C++-*-===//
+//===-- Implementation header for isspace_l
+//-------------------------*-C++-*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -9,8 +10,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_ISSPACE_H
#define LLVM_LIBC_SRC_CTYPE_ISSPACE_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/isupper.h b/libc/src/ctype/isupper.h
index 3c3eff3075..1dca1b92ec 100644
--- a/libc/src/ctype/isupper.h
+++ b/libc/src/ctype/isupper.h
@@ -9,8 +9,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_ISUPPER_H
#define LLVM_LIBC_SRC_CTYPE_ISUPPER_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/isupper_l.h b/libc/src/ctype/isupper_l.h
index 23b2f896c5..56bd05f9e3 100644
--- a/libc/src/ctype/isupper_l.h
+++ b/libc/src/ctype/isupper_l.h
@@ -1,4 +1,5 @@
-//===-- Implementation header for isupper_l -------------------------*-C++-*-===//
+//===-- Implementation header for isupper_l
+//-------------------------*-C++-*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -9,8 +10,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_ISUPPER_H
#define LLVM_LIBC_SRC_CTYPE_ISUPPER_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/isxdigit.h b/libc/src/ctype/isxdigit.h
index c0ff5a072a..626d1924bf 100644
--- a/libc/src/ctype/isxdigit.h
+++ b/libc/src/ctype/isxdigit.h
@@ -9,8 +9,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_ISXDIGIT_H
#define LLVM_LIBC_SRC_CTYPE_ISXDIGIT_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/isxdigit_l.h b/libc/src/ctype/isxdigit_l.h
index 9e70aeec56..621c065b06 100644
--- a/libc/src/ctype/isxdigit_l.h
+++ b/libc/src/ctype/isxdigit_l.h
@@ -1,4 +1,5 @@
-//===-- Implementation header for isxdigit_l ------------------------*-C++-*-===//
+//===-- Implementation header for isxdigit_l
+//------------------------*-C++-*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -9,8 +10,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_ISXDIGIT_H
#define LLVM_LIBC_SRC_CTYPE_ISXDIGIT_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/toascii.h b/libc/src/ctype/toascii.h
index a38874e206..48642544c4 100644
--- a/libc/src/ctype/toascii.h
+++ b/libc/src/ctype/toascii.h
@@ -9,8 +9,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_TOASCII_H
#define LLVM_LIBC_SRC_CTYPE_TOASCII_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/tolower.h b/libc/src/ctype/tolower.h
index 17aec558c0..fad7d15898 100644
--- a/libc/src/ctype/tolower.h
+++ b/libc/src/ctype/tolower.h
@@ -9,8 +9,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_TOLOWER_H
#define LLVM_LIBC_SRC_CTYPE_TOLOWER_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/tolower_l.cpp b/libc/src/ctype/tolower_l.cpp
index 833f19e62d..7ccf31617e 100644
--- a/libc/src/ctype/tolower_l.cpp
+++ b/libc/src/ctype/tolower_l.cpp
@@ -14,6 +14,8 @@
namespace LIBC_NAMESPACE_DECL {
-LLVM_LIBC_FUNCTION(int, tolower_l, (int c, locale_t)) { return internal::tolower(c); }
+LLVM_LIBC_FUNCTION(int, tolower_l, (int c, locale_t)) {
+ return internal::tolower(c);
+}
} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/ctype/tolower_l.h b/libc/src/ctype/tolower_l.h
index 6a031bf9ac..4ac7850183 100644
--- a/libc/src/ctype/tolower_l.h
+++ b/libc/src/ctype/tolower_l.h
@@ -1,4 +1,5 @@
-//===-- Implementation header for tolower_l -------------------------*-C++-*-===//
+//===-- Implementation header for tolower_l
+//-------------------------*-C++-*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -9,8 +10,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_TOLOWER_H
#define LLVM_LIBC_SRC_CTYPE_TOLOWER_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/toupper.h b/libc/src/ctype/toupper.h
index 8839cd4337..6dab5628cf 100644
--- a/libc/src/ctype/toupper.h
+++ b/libc/src/ctype/toupper.h
@@ -9,8 +9,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_TOUPPER_H
#define LLVM_LIBC_SRC_CTYPE_TOUPPER_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/ctype/toupper_l.h b/libc/src/ctype/toupper_l.h
index d3187ef3be..4435ffad1a 100644
--- a/libc/src/ctype/toupper_l.h
+++ b/libc/src/ctype/toupper_l.h
@@ -1,4 +1,5 @@
-//===-- Implementation header for toupper_l -------------------------*-C++-*-===//
+//===-- Implementation header for toupper_l
+//-------------------------*-C++-*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -9,8 +10,8 @@
#ifndef LLVM_LIBC_SRC_CTYPE_TOUPPER_H
#define LLVM_LIBC_SRC_CTYPE_TOUPPER_H
-#include "src/__support/macros/config.h"
#include "include/llvm-libc-types/locale_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
``````````
</details>
https://github.com/llvm/llvm-project/pull/102711
More information about the libc-commits
mailing list