[libcxx-commits] [libcxx] [NFC][libc++] Removes Clang 16 work-arounds. (PR #91636)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Feb 14 11:15:14 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 04bf00c7c4db7ab7c9d60cb0822400938afb4d52 4f86bca89ad17cbfa1e941415892dd51ad518432 --extensions  -- libcxx/include/queue libcxx/include/stack
``````````

</details>

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

``````````diff
diff --git a/libcxx/include/queue b/libcxx/include/queue
index ae85939248..5bdc0e7e01 100644
--- a/libcxx/include/queue
+++ b/libcxx/include/queue
@@ -429,11 +429,11 @@ public:
   friend _LIBCPP_HIDE_FROM_ABI bool
   operator<(const queue<_T1, _OtherContainer>& __x, const queue<_T1, _OtherContainer>& __y);
 
-#if _LIBCPP_STD_VER >= 20
+#  if _LIBCPP_STD_VER >= 20
   template <class _T1, three_way_comparable _OtherContainer>
   friend _LIBCPP_HIDE_FROM_ABI compare_three_way_result_t<_OtherContainer>
   operator<=>(const queue<_T1, _OtherContainer>& __x, const queue<_T1, _OtherContainer>& __y);
-#endif
+#  endif
 };
 
 #  if _LIBCPP_STD_VER >= 17
diff --git a/libcxx/include/stack b/libcxx/include/stack
index 6783bcfa5d..c5cbfc9bf6 100644
--- a/libcxx/include/stack
+++ b/libcxx/include/stack
@@ -286,11 +286,11 @@ public:
   friend _LIBCPP_HIDE_FROM_ABI bool
   operator<(const stack<_T1, _OtherContainer>& __x, const stack<_T1, _OtherContainer>& __y);
 
-#if _LIBCPP_STD_VER >= 20
+#  if _LIBCPP_STD_VER >= 20
   template <class _T1, three_way_comparable _OtherContainer>
   friend _LIBCPP_HIDE_FROM_ABI compare_three_way_result_t<_OtherContainer>
   operator<=>(const stack<_T1, _OtherContainer>& __x, const stack<_T1, _OtherContainer>& __y);
-#endif
+#  endif
 };
 
 #  if _LIBCPP_STD_VER >= 17

``````````

</details>


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


More information about the libcxx-commits mailing list