[libcxx-commits] [libcxx] [libc++] Replace `__compressed_pair` with `[[no_unique_address]]` (PR #76756)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jan 2 13:52:23 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 c92d3ce6fd0f6a48ebcaa206c371a26240d0a6a3 8d3053c396477ac299a7b7243da92ebd762c9563 -- libcxx/test/libcxx/containers/sequences/list/abi.compile.pass.cpp libcxx/test/libcxx/containers/sequences/vector.bool/abi.compile.pass.cpp libcxx/test/libcxx/containers/sequences/vector/abi.compile.pass.cpp libcxx/include/__config libcxx/include/__functional/function.h libcxx/include/__hash_table libcxx/include/__memory/compressed_pair.h libcxx/include/__memory/shared_ptr.h libcxx/include/__memory/unique_ptr.h libcxx/include/__split_buffer libcxx/include/__tree libcxx/include/deque libcxx/include/forward_list libcxx/include/future libcxx/include/list libcxx/include/string libcxx/include/vector libcxx/test/libcxx/containers/sequences/deque/abi.compile.pass.cpp libcxx/test/libcxx/containers/unord/unord.set/missing_hash_specialization.verify.cpp libcxx/test/libcxx/utilities/memory/util.smartptr/util.smartptr.shared/libcxx.control_block_layout.pass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/libcxx/containers/unord/unord.set/missing_hash_specialization.verify.cpp b/libcxx/test/libcxx/containers/unord/unord.set/missing_hash_specialization.verify.cpp
index 15740f8098..f6d93c7e6c 100644
--- a/libcxx/test/libcxx/containers/unord/unord.set/missing_hash_specialization.verify.cpp
+++ b/libcxx/test/libcxx/containers/unord/unord.set/missing_hash_specialization.verify.cpp
@@ -48,11 +48,10 @@ int main(int, char**) {
using Set = std::unordered_set<VT>;
Set s; // expected-error at __hash_table:* {{the specified hash does not meet the Hash requirements}}
-
- // FIXME: It would be great to suppress the below diagnostic all together.
- // but for now it's sufficient that it appears last. However there is
- // currently no way to test the order diagnostics are issued.
- // expected-error@*:* {{call to implicitly-deleted default constructor}}
+ // FIXME: It would be great to suppress the below diagnostic all together.
+ // but for now it's sufficient that it appears last. However there is
+ // currently no way to test the order diagnostics are issued.
+ // expected-error@*:* {{call to implicitly-deleted default constructor}}
}
{
using Set = std::unordered_set<int, BadHashNoCopy>;
``````````
</details>
https://github.com/llvm/llvm-project/pull/76756
More information about the libcxx-commits
mailing list