[libcxx-commits] [libcxx] [libcxx] Use alias for detecting overriden function (PR #114961)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Nov 6 05:46:03 PST 2024
================
@@ -43,7 +43,7 @@ static void* operator_new_impl(std::size_t size) {
return p;
}
-_LIBCPP_MAKE_OVERRIDABLE_FUNCTION_DETECTABLE _LIBCPP_WEAK void* operator new(std::size_t size) _THROW_BAD_ALLOC {
+_LIBCPP_OVERRIDABLE_FUNCTION(_Znmw, void*, operator new, (std::size_t size)) _THROW_BAD_ALLOC {
----------------
ldionne wrote:
```suggestion
_LIBCPP_OVERRIDABLE_FUNCTION(_Znwm, void*, operator new, (std::size_t size)) _THROW_BAD_ALLOC {
```
https://github.com/llvm/llvm-project/pull/114961
More information about the libcxx-commits
mailing list