[libcxx-commits] [libcxx] [libc++][safety] Enhance exception safety for vector assignments in reallocation scenarios (PR #117516)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Nov 25 07:49:37 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 7e3187e12a2cef8b2552e08ce9423aca9c09d813 c4f7cdf2a5461eb95ce484e464517fada1d019cf --extensions h,cpp -- libcxx/test/std/containers/sequences/vector/vector.cons/assign_exceptions.pass.cpp libcxx/test/support/exception_test_helpers.h libcxx/include/__vector/vector.h libcxx/test/support/allocators.h libcxx/test/support/test_allocator.h
``````````

</details>

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

``````````diff
diff --git a/libcxx/test/std/containers/sequences/vector/vector.cons/assign_exceptions.pass.cpp b/libcxx/test/std/containers/sequences/vector/vector.cons/assign_exceptions.pass.cpp
index 858911bc67..1aa9d6be21 100644
--- a/libcxx/test/std/containers/sequences/vector/vector.cons/assign_exceptions.pass.cpp
+++ b/libcxx/test/std/containers/sequences/vector/vector.cons/assign_exceptions.pass.cpp
@@ -127,7 +127,7 @@ void test_construction_exception() {
     }
     assert(v.size() == 3);
   }
-  
+
   {
     int throw_after = 10;
     throwing_t t    = throw_after;

``````````

</details>


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


More information about the libcxx-commits mailing list