mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
Notes:
sideshowbarker
2024-07-17 16:21:09 +09:00
Author: https://github.com/IdanHo
Commit: 086969277e
Pull-request: https://github.com/SerenityOS/serenity/pull/12321
Reviewed-by: https://github.com/BertalanD
Reviewed-by: https://github.com/bgianfo ✅
1665 changed files with 8479 additions and 8479 deletions
|
@ -33,9 +33,9 @@ class Heap {
|
|||
{
|
||||
return (AllocationHeader*)((((u8*)ptr) - sizeof(AllocationHeader)));
|
||||
}
|
||||
ALWAYS_INLINE const AllocationHeader* allocation_header(const void* ptr) const
|
||||
ALWAYS_INLINE AllocationHeader const* allocation_header(void const* ptr) const
|
||||
{
|
||||
return (const AllocationHeader*)((((const u8*)ptr) - sizeof(AllocationHeader)));
|
||||
return (AllocationHeader const*)((((u8 const*)ptr) - sizeof(AllocationHeader)));
|
||||
}
|
||||
|
||||
static size_t calculate_chunks(size_t memory_size)
|
||||
|
@ -120,12 +120,12 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
bool contains(const void* ptr) const
|
||||
bool contains(void const* ptr) const
|
||||
{
|
||||
const auto* a = allocation_header(ptr);
|
||||
if ((const u8*)a < m_chunks)
|
||||
auto const* a = allocation_header(ptr);
|
||||
if ((u8 const*)a < m_chunks)
|
||||
return false;
|
||||
if ((const u8*)ptr >= m_chunks + m_total_chunks * CHUNK_SIZE)
|
||||
if ((u8 const*)ptr >= m_chunks + m_total_chunks * CHUNK_SIZE)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue