[libcxx-commits] [libcxx] [libcxx] Add `locale` support for llvm `libc` (PR #97508)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jul 2 20:12:43 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 3402a1a4d2d4c7ead69156c3d741fc9ae9c4d399 51d04ae250db60205aac97c8d0ef5c54ac60af09 -- libcxx/include/__config libcxx/include/locale libcxx/src/locale.cpp
``````````

</details>

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

``````````diff
diff --git a/libcxx/src/locale.cpp b/libcxx/src/locale.cpp
index d114640ab7..fddb81bf5b 100644
--- a/libcxx/src/locale.cpp
+++ b/libcxx/src/locale.cpp
@@ -34,7 +34,8 @@
 #  define _CTYPE_DISABLE_MACROS
 #endif
 
-#if !defined(_LIBCPP_MSVCRT) && !defined(__MINGW32__) && !defined(__BIONIC__) && !defined(__NuttX__)  && !defined(__LLVM_LIBC__)
+#if !defined(_LIBCPP_MSVCRT) && !defined(__MINGW32__) && !defined(__BIONIC__) && !defined(__NuttX__) &&                \
+    !defined(__LLVM_LIBC__)
 #  include <langinfo.h>
 #endif
 

``````````

</details>


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


More information about the libcxx-commits mailing list