[libcxx-commits] [libcxx] [libc++] In `<format>`, use availability macro if including `<locale>` (PR #99274)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jul 16 23:39:18 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 b330d800cb7917e537b05a23febfe188401c5628 df8a44caec401ad4a274d85696c232c85d84d612 --extensions  -- libcxx/include/format
``````````

</details>

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

``````````diff
diff --git a/libcxx/include/format b/libcxx/include/format
index 5261747627..e9b77e2aa6 100644
--- a/libcxx/include/format
+++ b/libcxx/include/format
@@ -225,7 +225,7 @@ namespace std {
 
 #if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
 #  if !defined(_LIBCPP_HAS_NO_LOCALIZATION)
-#  include <locale>
+#    include <locale>
 #  endif
 #  include <queue>
 #  include <stack>

``````````

</details>


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


More information about the libcxx-commits mailing list