[libcxx-commits] [libcxx] [libc++] Update container adaptor tests (PR #224810)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Sep 18 23:11:16 PDT 2026
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 origin/main HEAD --extensions ,h,cpp -- libcxx/test/std/containers/container.adaptors/flat.map/types.verify.cpp libcxx/test/std/containers/container.adaptors/flat.multimap/types.verify.cpp libcxx/test/std/containers/container.adaptors/flat.multiset/types.verify.cpp libcxx/test/std/containers/container.adaptors/flat.set/types.verify.cpp libcxx/include/__flat_map/flat_map.h libcxx/include/__flat_map/flat_multimap.h libcxx/include/__flat_set/flat_multiset.h libcxx/include/__flat_set/flat_set.h libcxx/include/queue libcxx/include/stack libcxx/test/std/containers/container.adaptors/priority.queue/types.verify.cpp libcxx/test/std/containers/container.adaptors/queue/queue.defn/types.verify.cpp libcxx/test/std/containers/container.adaptors/stack/stack.defn/types.verify.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/queue b/libcxx/include/queue
index 18964b04d..cd14423b4 100644
--- a/libcxx/include/queue
+++ b/libcxx/include/queue
@@ -306,7 +306,8 @@ public:
typedef typename container_type::reference reference;
typedef typename container_type::const_reference const_reference;
typedef typename container_type::size_type size_type;
- static_assert(is_same<_Tp, value_type>::value, "The stored elements type must match the underlying container's value_type.");
+ static_assert(is_same<_Tp, value_type>::value,
+ "The stored elements type must match the underlying container's value_type.");
protected:
container_type c;
@@ -524,7 +525,8 @@ public:
typedef typename container_type::reference reference;
typedef typename container_type::const_reference const_reference;
typedef typename container_type::size_type size_type;
- static_assert(is_same<_Tp, value_type>::value, "The stored elements type must match the underlying container's value_type.");
+ static_assert(is_same<_Tp, value_type>::value,
+ "The stored elements type must match the underlying container's value_type.");
protected:
container_type c;
diff --git a/libcxx/include/stack b/libcxx/include/stack
index 55d030c28..51e2cee85 100644
--- a/libcxx/include/stack
+++ b/libcxx/include/stack
@@ -160,7 +160,8 @@ public:
typedef typename container_type::reference reference;
typedef typename container_type::const_reference const_reference;
typedef typename container_type::size_type size_type;
- static_assert(is_same<_Tp, value_type>::value, "The stored elements type must match the underlying container's value_type.");
+ static_assert(is_same<_Tp, value_type>::value,
+ "The stored elements type must match the underlying container's value_type.");
protected:
container_type c;
diff --git a/libcxx/test/std/containers/container.adaptors/queue/queue.defn/types.verify.cpp b/libcxx/test/std/containers/container.adaptors/queue/queue.defn/types.verify.cpp
index 717e26266..66779deb7 100644
--- a/libcxx/test/std/containers/container.adaptors/queue/queue.defn/types.verify.cpp
+++ b/libcxx/test/std/containers/container.adaptors/queue/queue.defn/types.verify.cpp
@@ -13,7 +13,6 @@
#include <queue>
-
void test() {
// expected-error-re@*:* {{static assertion failed{{.*}}The stored elements type must match the underlying container's value_type.}}
std::queue<double, std::deque<int>> qu;
``````````
</details>
https://github.com/llvm/llvm-project/pull/224810
More information about the libcxx-commits
mailing list