[libcxx-commits] [libcxx] [libcxx] don't `#include <cwchar>` if wide chars aren't enabled (PR #99911)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jul 22 11:13:13 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 bc4c3bf1b75fec183e2616d6688aa155d6aada74 b39ab98b04612142bee87235616b211be1d9145b --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 af5391ccea..a88b3ef852 100644
--- a/libcxx/include/format
+++ b/libcxx/include/format
@@ -249,9 +249,9 @@ namespace std {
# include <string_view>
# include <tuple>
-#if !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS)
-# include <cwchar>
-#endif
+# if !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS)
+# include <cwchar>
+# endif
#endif
#endif // _LIBCPP_FORMAT
``````````
</details>
https://github.com/llvm/llvm-project/pull/99911
More information about the libcxx-commits
mailing list