[libcxx-commits] [libcxx] [libc++] Refactor some forward declarations to avoid unnecessary dependencies (PR #81368)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Feb 10 09:41:41 PST 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 33c6b77d2a18862fb5b16160ef9d600382e93f19 d35a4dbdb1d74e56837a3415d2ba449cce3633cd -- libcxx/include/__fwd/array.h libcxx/include/__fwd/pair.h libcxx/include/__fwd/subrange.h libcxx/include/__fwd/tuple.h libcxx/include/__memory/compressed_pair.h libcxx/include/__ranges/elements_view.h libcxx/include/__ranges/subrange.h libcxx/include/__tuple/pair_like.h libcxx/include/__utility/pair.h libcxx/include/istream libcxx/include/streambuf libcxx/include/tuple
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/__fwd/tuple.h b/libcxx/include/__fwd/tuple.h
index d6e244988c..96ad09f1c6 100644
--- a/libcxx/include/__fwd/tuple.h
+++ b/libcxx/include/__fwd/tuple.h
@@ -30,7 +30,7 @@ struct _LIBCPP_TEMPLATE_VIS tuple_element;
template <class>
struct _LIBCPP_TEMPLATE_VIS tuple_size;
-#if _LIBCPP_STD_VER >= 20
+# if _LIBCPP_STD_VER >= 20
template <class _Tp>
inline constexpr bool __is_tuple_like_v = false;
``````````
</details>
https://github.com/llvm/llvm-project/pull/81368
More information about the libcxx-commits
mailing list