[libcxx-commits] [libcxx] [libc++] Remove <queue> and <stack> includes from <format> (PR #85520)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Mar 18 04:59:53 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 6854f6f1b102d1c767388e0ed3a58f0eeed69b62 ac89e04414e7c70f7074cf9655b253f8c310649e -- libcxx/include/__fwd/deque.h libcxx/include/__fwd/memory.h libcxx/include/__fwd/queue.h libcxx/include/__fwd/stack.h libcxx/include/__fwd/vector.h libcxx/include/__format/container_adaptor.h libcxx/include/__fwd/sstream.h libcxx/include/__fwd/string.h libcxx/include/deque libcxx/include/format libcxx/include/iosfwd libcxx/include/queue libcxx/include/stack libcxx/include/vector libcxx/test/std/containers/sequences/vector/vector.cons/deduct.verify.cpp libcxx/test/support/deduction_guides_sfinae_checks.h
``````````

</details>

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

``````````diff
diff --git a/libcxx/test/std/containers/sequences/vector/vector.cons/deduct.verify.cpp b/libcxx/test/std/containers/sequences/vector/vector.cons/deduct.verify.cpp
index 2c10f33a49..819fd55b64 100644
--- a/libcxx/test/std/containers/sequences/vector/vector.cons/deduct.verify.cpp
+++ b/libcxx/test/std/containers/sequences/vector/vector.cons/deduct.verify.cpp
@@ -20,13 +20,15 @@
 
 int main(int, char**)
 {
-//  Test the explicit deduction guides
-// TODO: Should there be tests for explicit deduction guides?
+  //  Test the explicit deduction guides
+  // TODO: Should there be tests for explicit deduction guides?
 
-//  Test the implicit deduction guides
-    {
-//  vector (allocator &)
-    std::vector vec(std::allocator<int>{});  // expected-error {{no viable constructor or deduction guide for deduction of template arguments of 'vector'}}
+  //  Test the implicit deduction guides
+  {
+    //  vector (allocator &)
+    std::vector vec(
+        std::allocator<
+            int>{}); // expected-error {{no viable constructor or deduction guide for deduction of template arguments of 'vector'}}
     }
 
 

``````````

</details>


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


More information about the libcxx-commits mailing list