Ignore sanitizer error on scopedptr::takeownership
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2022-03-25 19:19:56 +01:00
parent 464b3f3ac1
commit 510fa60c0e
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,9 @@ namespace ArbUt {
inline T* non_null operator->() const noexcept { return _raw; }
/// @brief Get the raw underlying pointer, and take ownership of it. This removes the existing pointer in here.
#if defined(__clang__)
[[clang::no_sanitize("nullability-assign")]]
#endif
inline T* non_null TakeOwnership() noexcept {
auto raw = _raw;
_raw = nullptr;