mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-04 15:09:40 +00:00
AK: Suppress false positive readability-non-const-parameter in Function
In AK::Function::CallableWrapper::init_and_swap(), clang-tidy wants us to mark the destination argument as pointer to const, which doesn't work because we use placement new to construct a move'd *this into.
This commit is contained in:
parent
7014d37dd6
commit
f32e185269
|
@ -156,6 +156,7 @@ private:
|
||||||
delete this;
|
delete this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NOLINTNEXTLINE(readability-non-const-parameter) False positive; destination is used in a placement new expression
|
||||||
void init_and_swap(u8* destination, size_t size) final override
|
void init_and_swap(u8* destination, size_t size) final override
|
||||||
{
|
{
|
||||||
VERIFY(size >= sizeof(CallableWrapper));
|
VERIFY(size >= sizeof(CallableWrapper));
|
||||||
|
|
Loading…
Reference in a new issue