[libcxx-commits] [libcxx] [libc++] Add tests for the ABI break introduced by switching to [[no_unique_address]] (PR #154559)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Aug 20 08:32:51 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 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/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 0aad8f68c..8a0373beb 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) { return true; }
   friend bool operator!=(common_base_allocator, common_base_allocator) { return false; }
-
 };
 
 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 7b8901959..2ba3c15d6 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) { return true; }
   friend bool operator!=(common_base_allocator, common_base_allocator) { return false; }
-
 };
 
 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 7e495ff3a..c13c9be18 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) { return true; }
   friend bool operator!=(common_base_allocator, common_base_allocator) { return false; }
-
 };
 
 #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 b80faef29..6c120d121 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) { return true; }
   friend bool operator!=(common_base_allocator, common_base_allocator) { return false; }
-
 };
 
 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 f5794e186..437294e2f 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) { return true; }
   friend bool operator!=(common_base_allocator, common_base_allocator) { return false; }
-
 };
 
 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 27ab07d39..d7954c5c0 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) { return true; }
   friend bool operator!=(common_base_allocator, common_base_allocator) { return false; }
-
 };
 
 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 dad6eb6c8..ca49308ee 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) { return true; }
   friend bool operator!=(common_base_allocator, common_base_allocator) { return false; }
-
 };
 
 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 b08ba4a09..1115a3be0 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) { return true; }
   friend bool operator!=(common_base_allocator, common_base_allocator) { return false; }
-
 };
 
 template <class Alloc>

``````````

</details>


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


More information about the libcxx-commits mailing list