[libcxx-commits] [libcxx] [libc++] Simplify a bunch of noexcept specifications (PR #166397)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Nov 5 01:01:05 PST 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 origin/main HEAD --extensions ,cpp,h -- libcxx/include/__hash_table libcxx/include/__memory/noexcept_move_assign_container.h libcxx/include/__split_buffer libcxx/include/__tree libcxx/include/__vector/vector.h libcxx/include/__vector/vector_bool.h libcxx/include/deque libcxx/include/forward_list libcxx/include/list libcxx/include/queue libcxx/include/stack libcxx/include/string libcxx/test/std/containers/container.adaptors/flat.set/flat.set.cons/move.pass.cpp libcxx/test/libcxx/containers/sequences/deque/deque.cons/move_noexcept.compile.pass.cpp libcxx/test/libcxx/containers/sequences/forwardlist/move_noexcept.pass.cpp libcxx/test/libcxx/containers/sequences/list/list.cons/move_noexcept.pass.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/test/std/containers/container.adaptors/flat.set/flat.set.cons/move.pass.cpp b/libcxx/test/std/containers/container.adaptors/flat.set/flat.set.cons/move.pass.cpp
index 5ffab4f0c..305736c88 100644
--- a/libcxx/test/std/containers/container.adaptors/flat.set/flat.set.cons/move.pass.cpp
+++ b/libcxx/test/std/containers/container.adaptors/flat.set/flat.set.cons/move.pass.cpp
@@ -85,7 +85,7 @@ constexpr void test() {
 template <class T>
 struct PotentiallyThrowingMoveAllocator {
   using value_type                                    = T;
-  explicit PotentiallyThrowingMoveAllocator()                    = default;
+  explicit PotentiallyThrowingMoveAllocator()                               = default;
   PotentiallyThrowingMoveAllocator(const PotentiallyThrowingMoveAllocator&) = default;
   constexpr PotentiallyThrowingMoveAllocator(PotentiallyThrowingMoveAllocator&&) noexcept(false) {}
   constexpr T* allocate(std::ptrdiff_t n) { return std::allocator<T>().allocate(n); }

``````````

</details>


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


More information about the libcxx-commits mailing list