base-hw: coding style

Improve consistency with the other base repositories, in particular

- Indentation of class initializers
- Vertical whitespace around control-flow statements
- Preferably place control-flow statements (return, break, continue) at
  beginning of a line
- Placing the opening brace of a namespace at the end of line
- Placing the opening brace of a class at a new line
- Removing superfluous braces around single statements
- Two empty lines between methods/functions in implementation files
This commit is contained in:
Norman Feske
2021-02-01 15:44:16 +01:00
parent cbae9bc1c8
commit 493924a35e
232 changed files with 1311 additions and 731 deletions

View File

@ -25,6 +25,7 @@
#include <kernel/object.h>
namespace Genode {
/**
* Represents a kernel object in core
*
@ -50,10 +51,12 @@ class Genode::Kernel_object : public Genode::Constructible<Kernel::Core_object<T
*/
template <typename... ARGS>
Kernel_object(bool syscall, ARGS &&... args)
: _cap(Capability_space::import(syscall ? T::syscall_create(*this, args...)
: Kernel::cap_id_invalid()))
:
_cap(Capability_space::import(syscall ? T::syscall_create(*this, args...)
: Kernel::cap_id_invalid()))
{
if (!syscall) Genode::Constructible<Kernel::Core_object<T>>::construct(args...);
if (!syscall)
Genode::Constructible<Kernel::Core_object<T>>::construct(args...);
}
~Kernel_object()