[libcxx-commits] [libcxx] [libc++][tuple][utility] P2968R2 Make `std::ignore` a first-class object (PR #97401)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jul 2 21:34:40 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 03e46475f510d9d7fa813dcfa1fd91894af39862 cf0e266a02ab7cba91caeb9377eae7d454ca28ce -- libcxx/include/__tuple/ignore.h libcxx/include/tuple libcxx/include/utility libcxx/test/std/utilities/tuple/tuple.general/ignore.pass.cpp
``````````

</details>

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

``````````diff
diff --git a/libcxx/include/__tuple/ignore.h b/libcxx/include/__tuple/ignore.h
index a8261de7d7..a00fc7e7d5 100644
--- a/libcxx/include/__tuple/ignore.h
+++ b/libcxx/include/__tuple/ignore.h
@@ -21,7 +21,9 @@ _LIBCPP_BEGIN_NAMESPACE_STD
 
 struct __ignore_type {
   template <class _Tp>
-  _LIBCPP_HIDE_FROM_ABI constexpr const __ignore_type& operator=(const _Tp&) const noexcept { return *this; }
+  _LIBCPP_HIDE_FROM_ABI constexpr const __ignore_type& operator=(const _Tp&) const noexcept {
+    return *this;
+  }
 };
 
 inline constexpr __ignore_type ignore;

``````````

</details>


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


More information about the libcxx-commits mailing list