[libcxx-commits] [libcxx] [libc++] Add move constructor & assignment to `exception_ptr` (PR #164281)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Fri Oct 31 07:24:14 PDT 2025


================
@@ -0,0 +1,44 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// <exception>
+
+// typedef unspecified exception_ptr;
+
+// Test the move assignment of exception_ptr
+
+#include <exception>
+#include <utility>
+#include <cassert>
+
+#include "test_macros.h"
+
+int main(int, char**)
----------------
philnik777 wrote:

You should format new code - it's that simple. The headers are fully formatted, but the tests aren't, since that's a humongous amount of code. When modifying existing tests I don't really care either way though. You can pre-format them (i.e. have an NFC patch before the actual modification) or just keep the existing style.

I don't know whether you're the only one. We don't have that many newcomers, especially ones with high quality code.

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


More information about the libcxx-commits mailing list