[libcxx-commits] [libcxx] [libc++][test] Fix and refactor exception tests for std::vector (PR #117662)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Nov 28 07:20:53 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 3a01b46dae1a00f77ed8c46a4239595803c9e35e 7229b2edee99c7614768df3282de784fc01a49a9 --extensions h,cpp -- libcxx/test/std/containers/sequences/vector/common.h libcxx/test/std/containers/sequences/vector/vector.cons/exceptions.pass.cpp
``````````

</details>

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

``````````diff
diff --git a/libcxx/test/std/containers/sequences/vector/common.h b/libcxx/test/std/containers/sequences/vector/common.h
index 7c7df95885..cd57b6cc3e 100644
--- a/libcxx/test/std/containers/sequences/vector/common.h
+++ b/libcxx/test/std/containers/sequences/vector/common.h
@@ -50,7 +50,7 @@ struct throwing_t {
 
 template <class T>
 struct throwing_allocator {
-  using value_type      = T;
+  using value_type = T;
 
   bool throw_on_copy_ = false;
 

``````````

</details>


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


More information about the libcxx-commits mailing list