[libcxx-commits] [libcxx] [libc++] Redefine Fuchsia locale base support on top of the new API (PR #122489)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jan 10 14:07:22 PST 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 c664a7f9750356319c329408be94f669cf5f799e 8556045c61d45adfbeb3a655b975136a42b09cf7 --extensions h -- libcxx/include/__locale_dir/support/fuchsia.h libcxx/include/__locale_dir/support/no_locale/characters.h libcxx/include/__locale_dir/support/no_locale/strtonum.h libcxx/include/__locale_dir/locale_base_api.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/__locale_dir/support/fuchsia.h b/libcxx/include/__locale_dir/support/fuchsia.h
index f2fdd237c9..30e259902c 100644
--- a/libcxx/include/__locale_dir/support/fuchsia.h
+++ b/libcxx/include/__locale_dir/support/fuchsia.h
@@ -10,9 +10,9 @@
#define _LIBCPP___LOCALE_DIR_SUPPORT_FUCHSIA_H
#include <__config>
+#include <clocale> // uselocale & friends
#include <cstdlib>
#include <cwchar>
-#include <clocale> // uselocale & friends
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
# pragma GCC system_header
``````````
</details>
https://github.com/llvm/llvm-project/pull/122489
More information about the libcxx-commits
mailing list