[libcxx-commits] [libcxx] [libc++] Add __pointer_int_pair (PR #94324)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jun 4 01:46:23 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 5367b2c862a7bfe138ee17994edfdb7938437064 21fce337b9b023db25a0325ceedaa9df22004c38 -- libcxx/include/__utility/pointer_int_pair.h libcxx/test/libcxx/utilities/pointer_int_pair/assert.constructor.pass.cpp libcxx/test/libcxx/utilities/pointer_int_pair/constinit.verify.cpp libcxx/test/libcxx/utilities/pointer_int_pair/pointer_int_pair.pass.cpp libcxx/test/libcxx/utilities/pointer_int_pair/static_asserts.verify.cpp
``````````

</details>

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

``````````diff
diff --git a/libcxx/test/libcxx/utilities/pointer_int_pair/constinit.verify.cpp b/libcxx/test/libcxx/utilities/pointer_int_pair/constinit.verify.cpp
index e06a378bf1..bca46ab362 100644
--- a/libcxx/test/libcxx/utilities/pointer_int_pair/constinit.verify.cpp
+++ b/libcxx/test/libcxx/utilities/pointer_int_pair/constinit.verify.cpp
@@ -18,4 +18,5 @@ template <class Ptr, class UnderlyingType>
 using single_bit_pair = std::__pointer_int_pair<Ptr, UnderlyingType, std::__integer_width{1}>;
 
 constinit int ptr = 0;
-constinit single_bit_pair<int*, size_t> continitiable_pointer_int_pair_values{&ptr, 0}; // expected-error {{variable does not have a constant initializer}}
+constinit single_bit_pair<int*, size_t> continitiable_pointer_int_pair_values{
+    &ptr, 0}; // expected-error {{variable does not have a constant initializer}}

``````````

</details>


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


More information about the libcxx-commits mailing list