diff options
author | Robin Burchell <robin+git@viroteck.net> | 2019-05-28 11:53:16 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-05-28 17:31:20 +0200 |
commit | 0dc9af5f7e26b0dfa42cb75c900b9ef7a2192425 (patch) | |
tree | 93dbbbeb714f258bd7fb044633eb83bdcd908286 /Kernel/VM/VMObject.h | |
parent | c11351ac507f863699d78aec46a77bd4d59e743c (diff) | |
download | serenity-0dc9af5f7e26b0dfa42cb75c900b9ef7a2192425.zip |
Add clang-format file
Also run it across the whole tree to get everything using the One True Style.
We don't yet run this in an automated fashion as it's a little slow, but
there is a snippet to do so in makeall.sh.
Diffstat (limited to 'Kernel/VM/VMObject.h')
-rw-r--r-- | Kernel/VM/VMObject.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Kernel/VM/VMObject.h b/Kernel/VM/VMObject.h index 4a0fee7436..0f7b9c4fea 100644 --- a/Kernel/VM/VMObject.h +++ b/Kernel/VM/VMObject.h @@ -1,11 +1,11 @@ #pragma once +#include <AK/AKString.h> #include <AK/Badge.h> -#include <AK/Retainable.h> -#include <AK/Weakable.h> #include <AK/RetainPtr.h> +#include <AK/Retainable.h> #include <AK/Vector.h> -#include <AK/AKString.h> +#include <AK/Weakable.h> #include <Kernel/Lock.h> #include <Kernel/PhysicalAddress.h> #include <Kernel/UnixTypes.h> @@ -13,8 +13,10 @@ class Inode; class PhysicalPage; -class VMObject : public Retainable<VMObject>, public Weakable<VMObject> { +class VMObject : public Retainable<VMObject> + , public Weakable<VMObject> { friend class MemoryManager; + public: static Retained<VMObject> create_file_backed(RetainPtr<Inode>&&); static Retained<VMObject> create_anonymous(size_t); @@ -46,7 +48,8 @@ private: explicit VMObject(size_t); VMObject(PhysicalAddress, size_t); - template<typename Callback> void for_each_region(Callback); + template<typename Callback> + void for_each_region(Callback); String m_name; bool m_allow_cpu_caching { true }; |