[libcxx-commits] [libcxx] [libc++] Provide sized deallocation declarations even when the compiler doesn't support sized deallocation (PR #125577)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Feb 3 12:57:46 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 c7c7eabc7fc42433ed6a0a93ea14f279ad8d37af 35aeeb6e70b63999f610e479b4d11db20213551d --extensions h,cpp -- libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete.fno-sized-deallocation.pass.cpp libcxx/include/__new/global_new_delete.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete.fno-sized-deallocation.pass.cpp b/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete.fno-sized-deallocation.pass.cpp
index daa0374fd2..f6145cb1eb 100644
--- a/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete.fno-sized-deallocation.pass.cpp
+++ b/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete.fno-sized-deallocation.pass.cpp
@@ -21,7 +21,7 @@
#include <new>
int main(int, char**) {
- void* p = ::operator new(10);
- ::operator delete(p, 10);
- return 0;
+ void* p = ::operator new(10);
+ ::operator delete(p, 10);
+ return 0;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/125577
More information about the libcxx-commits
mailing list