[libcxx-commits] [libcxx] [libcxxabi] [libc++][libc++abi] Merge the operator new implementations into a shared file (PR #213427)

via libcxx-commits libcxx-commits at lists.llvm.org
Sat Aug 1 03:40:25 PDT 2026


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 -- libcxx/src/new.cpp libcxxabi/src/stdlib_new_delete.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/src/new.cpp b/libcxx/src/new.cpp
index 0d4e9fce2..618b4348f 100644
--- a/libcxx/src/new.cpp
+++ b/libcxx/src/new.cpp
@@ -15,6 +15,6 @@ inline void __throw_bad_alloc_shim() { std::__throw_bad_alloc(); }
 
 #  define _LIBCPP_ASSERT_SHIM(expr, str) _LIBCPP_ASSERT(expr, str)
 
-#include "support/new.ipp"
+#  include "support/new.ipp"
 
 #endif // !__GLIBCXX__ && !_LIBCPP_ABI_VCRUNTIME

``````````

</details>


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


More information about the libcxx-commits mailing list