[libcxx-commits] [libcxx] [libcxx] Put `std::monostate` in `<utility>` (PR #128373)

via libcxx-commits libcxx-commits at lists.llvm.org
Sun Feb 23 04:46:43 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 d2616cc3926ec0ac73ec547e04b64e045035bd3c 11f26e616eb6ba27310efab6a9a14663ee2952a4 --extensions cpp, -- libcxx/test/std/utilities/utility/utility.monostate.relpos/relops.pass.cpp libcxx/test/std/utilities/utility/utility.monostate/monostate.pass.cpp libcxx/include/utility
``````````

</details>

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

``````````diff
diff --git a/libcxx/include/utility b/libcxx/include/utility
index 4e0dde8cfb..bc4eaf6a0c 100644
--- a/libcxx/include/utility
+++ b/libcxx/include/utility
@@ -279,9 +279,9 @@ template <class T>
 #    include <__utility/unreachable.h>
 #  endif
 
-# if _LIBCPP_STD_VER >= 26
+#  if _LIBCPP_STD_VER >= 26
 #    include <__variant/monostate.h>
-# endif
+#  endif
 
 #  include <version>
 

``````````

</details>


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


More information about the libcxx-commits mailing list