[libcxx-commits] [libcxx] Revert "[libc++] Allow the use of extensions in the implementation (#79532)" (PR #85792)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Mar 19 10:37:42 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 c1328db9d8e41bb96e031eb3dfa884e56b07244b d9a2a06956778848096a0befa08aee0efac683cc -- libcxx/include/__config libcxx/include/__utility/pair.h libcxx/include/tuple
``````````

</details>

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

``````````diff
diff --git a/libcxx/include/__utility/pair.h b/libcxx/include/__utility/pair.h
index 7841b95b68..616b41322e 100644
--- a/libcxx/include/__utility/pair.h
+++ b/libcxx/include/__utility/pair.h
@@ -71,10 +71,11 @@ struct __is_specialization_of_subrange<ranges::subrange<_Iter, _Sent, _Kind>> :
 _LIBCPP_DIAGNOSTIC_PUSH
 // Allow use of explicit(bool) extension.
 _LIBCPP_CLANG_DIAGNOSTIC_IGNORED("-Wc++20-extensions")
-_LIBCPP_GCC_DIAGNOSTIC_IGNORED("-Wc++20-extensions")_LIBCPP_DIAGNOSTIC_POP
+_LIBCPP_GCC_DIAGNOSTIC_IGNORED("-Wc++20-extensions")
+_LIBCPP_DIAGNOSTIC_POP
 
-template <class _T1, class _T2>
-struct _LIBCPP_TEMPLATE_VIS pair
+    template <class _T1, class _T2>
+    struct _LIBCPP_TEMPLATE_VIS pair
 #if defined(_LIBCPP_DEPRECATED_ABI_DISABLE_PAIR_TRIVIAL_COPY_CTOR)
     : private __non_trivially_copyable_base<_T1, _T2>
 #endif

``````````

</details>


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


More information about the libcxx-commits mailing list