[libcxx-commits] [libcxx] [libc++] Fix ABI break introduced by switching to _LIBCPP_COMPRESSED_PAIR (PR #154686)
via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Aug 21 00:29:10 PDT 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 HEAD~1 HEAD --extensions ,h,cpp -- libcxx/test/libcxx/containers/associative/map/abi.compile.pass.cpp libcxx/test/libcxx/containers/associative/set/abi.compile.pass.cpp libcxx/test/libcxx/containers/sequences/forwardlist/abi.compile.pass.cpp libcxx/test/libcxx/containers/strings/basic.string/abi.compile.pass.cpp libcxx/include/__memory/compressed_pair.h libcxx/include/string libcxx/test/libcxx/containers/associative/unord.map/abi.compile.pass.cpp libcxx/test/libcxx/containers/associative/unord.set/abi.compile.pass.cpp libcxx/test/libcxx/containers/sequences/deque/abi.compile.pass.cpp 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
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/libcxx/containers/associative/unord.map/abi.compile.pass.cpp b/libcxx/test/libcxx/containers/associative/unord.map/abi.compile.pass.cpp
index f5cf0241c..8602be036 100644
--- a/libcxx/test/libcxx/containers/associative/unord.map/abi.compile.pass.cpp
+++ b/libcxx/test/libcxx/containers/associative/unord.map/abi.compile.pass.cpp
@@ -70,7 +70,7 @@ struct allocator_base {};
template <class T>
struct common_base_allocator : allocator_base {
- using value_type = T;
+ using value_type = T;
common_base_allocator() TEST_NOEXCEPT {}
@@ -82,7 +82,6 @@ struct common_base_allocator : allocator_base {
friend bool operator==(common_base_allocator, common_base_allocator);
friend bool operator!=(common_base_allocator, common_base_allocator);
-
};
template <class T, class Alloc>
diff --git a/libcxx/test/libcxx/containers/associative/unord.set/abi.compile.pass.cpp b/libcxx/test/libcxx/containers/associative/unord.set/abi.compile.pass.cpp
index 12e683e10..bad34ee39 100644
--- a/libcxx/test/libcxx/containers/associative/unord.set/abi.compile.pass.cpp
+++ b/libcxx/test/libcxx/containers/associative/unord.set/abi.compile.pass.cpp
@@ -70,7 +70,7 @@ struct allocator_base {};
template <class T>
struct common_base_allocator : allocator_base {
- using value_type = T;
+ using value_type = T;
common_base_allocator() TEST_NOEXCEPT {}
@@ -82,7 +82,6 @@ struct common_base_allocator : allocator_base {
friend bool operator==(common_base_allocator, common_base_allocator);
friend bool operator!=(common_base_allocator, common_base_allocator);
-
};
template <class T, class Alloc>
diff --git a/libcxx/test/libcxx/containers/sequences/deque/abi.compile.pass.cpp b/libcxx/test/libcxx/containers/sequences/deque/abi.compile.pass.cpp
index 8f4dfc509..049de1110 100644
--- a/libcxx/test/libcxx/containers/sequences/deque/abi.compile.pass.cpp
+++ b/libcxx/test/libcxx/containers/sequences/deque/abi.compile.pass.cpp
@@ -64,7 +64,7 @@ struct allocator_base {};
template <class T>
struct common_base_allocator : allocator_base {
- using value_type = T;
+ using value_type = T;
common_base_allocator() TEST_NOEXCEPT {}
@@ -76,7 +76,6 @@ struct common_base_allocator : allocator_base {
friend bool operator==(common_base_allocator, common_base_allocator);
friend bool operator!=(common_base_allocator, common_base_allocator);
-
};
#if __SIZE_WIDTH__ == 64
diff --git a/libcxx/test/libcxx/containers/sequences/forwardlist/abi.compile.pass.cpp b/libcxx/test/libcxx/containers/sequences/forwardlist/abi.compile.pass.cpp
index 38bff22c5..be064a002 100644
--- a/libcxx/test/libcxx/containers/sequences/forwardlist/abi.compile.pass.cpp
+++ b/libcxx/test/libcxx/containers/sequences/forwardlist/abi.compile.pass.cpp
@@ -42,7 +42,7 @@ struct allocator_base {};
template <class T>
struct common_base_allocator : allocator_base {
- using value_type = T;
+ using value_type = T;
common_base_allocator() TEST_NOEXCEPT {}
@@ -54,7 +54,6 @@ struct common_base_allocator : allocator_base {
friend bool operator==(common_base_allocator, common_base_allocator);
friend bool operator!=(common_base_allocator, common_base_allocator);
-
};
struct user_struct {
diff --git a/libcxx/test/libcxx/containers/sequences/list/abi.compile.pass.cpp b/libcxx/test/libcxx/containers/sequences/list/abi.compile.pass.cpp
index afe00cac5..d4d39e4ec 100644
--- a/libcxx/test/libcxx/containers/sequences/list/abi.compile.pass.cpp
+++ b/libcxx/test/libcxx/containers/sequences/list/abi.compile.pass.cpp
@@ -42,7 +42,7 @@ struct allocator_base {};
template <class T>
struct common_base_allocator : allocator_base {
- using value_type = T;
+ using value_type = T;
common_base_allocator() TEST_NOEXCEPT {}
@@ -54,7 +54,6 @@ struct common_base_allocator : allocator_base {
friend bool operator==(common_base_allocator, common_base_allocator);
friend bool operator!=(common_base_allocator, common_base_allocator);
-
};
struct user_struct {
diff --git a/libcxx/test/libcxx/containers/sequences/vector.bool/abi.compile.pass.cpp b/libcxx/test/libcxx/containers/sequences/vector.bool/abi.compile.pass.cpp
index e724ae97c..55b17f1f9 100644
--- a/libcxx/test/libcxx/containers/sequences/vector.bool/abi.compile.pass.cpp
+++ b/libcxx/test/libcxx/containers/sequences/vector.bool/abi.compile.pass.cpp
@@ -44,7 +44,7 @@ struct allocator_base {};
template <class T>
struct common_base_allocator : allocator_base {
- using value_type = T;
+ using value_type = T;
common_base_allocator() TEST_NOEXCEPT {}
@@ -56,7 +56,6 @@ struct common_base_allocator : allocator_base {
friend bool operator==(common_base_allocator, common_base_allocator);
friend bool operator!=(common_base_allocator, common_base_allocator);
-
};
struct user_struct {
diff --git a/libcxx/test/libcxx/containers/sequences/vector/abi.compile.pass.cpp b/libcxx/test/libcxx/containers/sequences/vector/abi.compile.pass.cpp
index 854e122f8..5068278fe 100644
--- a/libcxx/test/libcxx/containers/sequences/vector/abi.compile.pass.cpp
+++ b/libcxx/test/libcxx/containers/sequences/vector/abi.compile.pass.cpp
@@ -50,7 +50,7 @@ struct allocator_base {};
template <class T>
struct common_base_allocator : allocator_base {
- using value_type = T;
+ using value_type = T;
common_base_allocator() TEST_NOEXCEPT {}
@@ -62,7 +62,6 @@ struct common_base_allocator : allocator_base {
friend bool operator==(common_base_allocator, common_base_allocator);
friend bool operator!=(common_base_allocator, common_base_allocator);
-
};
struct user_struct {
diff --git a/libcxx/test/libcxx/containers/strings/basic.string/abi.compile.pass.cpp b/libcxx/test/libcxx/containers/strings/basic.string/abi.compile.pass.cpp
index 2cae14412..35fc1c73b 100644
--- a/libcxx/test/libcxx/containers/strings/basic.string/abi.compile.pass.cpp
+++ b/libcxx/test/libcxx/containers/strings/basic.string/abi.compile.pass.cpp
@@ -50,7 +50,7 @@ struct allocator_base {};
template <class T>
struct common_base_allocator : allocator_base {
- using value_type = T;
+ using value_type = T;
common_base_allocator() TEST_NOEXCEPT {}
@@ -62,7 +62,6 @@ struct common_base_allocator : allocator_base {
friend bool operator==(common_base_allocator, common_base_allocator);
friend bool operator!=(common_base_allocator, common_base_allocator);
-
};
template <class Alloc>
``````````
</details>
https://github.com/llvm/llvm-project/pull/154686
More information about the libcxx-commits
mailing list