mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:37:35 +00:00
Everywhere: Re-format with clang-format-11
Compared to version 10 this fixes a bunch of formatting issues, mostly around structs/classes with attributes like [[gnu::packed]], and incorrect insertion of spaces in parameter types ("T &"/"T &&"). I also removed a bunch of // clang-format off/on and FIXME comments that are no longer relevant - on the other hand it tried to destroy a couple of neatly formatted comments, so I had to add some as well.
This commit is contained in:
parent
2568a93b5d
commit
bbe787a0af
54 changed files with 130 additions and 230 deletions
13
AK/Result.h
13
AK/Result.h
|
@ -32,14 +32,13 @@
|
|||
namespace AK {
|
||||
|
||||
template<typename ValueType, typename ErrorType>
|
||||
class [[nodiscard]] Result
|
||||
{
|
||||
class [[nodiscard]] Result {
|
||||
public:
|
||||
Result(const ValueType& res)
|
||||
: m_result(res)
|
||||
{
|
||||
}
|
||||
Result(ValueType && res)
|
||||
Result(ValueType&& res)
|
||||
: m_result(move(res))
|
||||
{
|
||||
}
|
||||
|
@ -47,7 +46,7 @@ public:
|
|||
: m_error(error)
|
||||
{
|
||||
}
|
||||
Result(ErrorType && error)
|
||||
Result(ErrorType&& error)
|
||||
: m_error(move(error))
|
||||
{
|
||||
}
|
||||
|
@ -58,19 +57,13 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
// FIXME: clang-format gets confused about Result. Why?
|
||||
// clang-format off
|
||||
Result(Result&& other)
|
||||
// clang-format on
|
||||
: m_result(move(other.m_result))
|
||||
, m_error(move(other.m_error))
|
||||
{
|
||||
}
|
||||
|
||||
// FIXME: clang-format gets confused about Result. Why?
|
||||
// clang-format off
|
||||
Result(Result& other)
|
||||
// clang-format on
|
||||
: m_result(other.m_result)
|
||||
, m_error(other.m_error)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue