mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
8639d8bc21
commit
d26aabff04
140 changed files with 1202 additions and 723 deletions
|
@ -35,7 +35,8 @@ struct SimpleException {
|
|||
template<typename ValueType>
|
||||
class [[nodiscard]] ExceptionOr {
|
||||
public:
|
||||
ExceptionOr() requires(IsSame<ValueType, Empty>)
|
||||
ExceptionOr()
|
||||
requires(IsSame<ValueType, Empty>)
|
||||
: m_result(Empty {})
|
||||
{
|
||||
}
|
||||
|
@ -54,7 +55,8 @@ public:
|
|||
// Most commonly: Value from Object* or similar, so we can omit the curly braces from "return { TRY(...) };".
|
||||
// Disabled for POD types to avoid weird conversion shenanigans.
|
||||
template<typename WrappedValueType>
|
||||
ExceptionOr(WrappedValueType result) requires(!IsPOD<ValueType>)
|
||||
ExceptionOr(WrappedValueType result)
|
||||
requires(!IsPOD<ValueType>)
|
||||
: m_result(move(result))
|
||||
{
|
||||
}
|
||||
|
@ -87,7 +89,8 @@ public:
|
|||
ExceptionOr(ExceptionOr const& other) = default;
|
||||
~ExceptionOr() = default;
|
||||
|
||||
ValueType& value() requires(!IsSame<ValueType, Empty>)
|
||||
ValueType& value()
|
||||
requires(!IsSame<ValueType, Empty>)
|
||||
{
|
||||
return m_result.value();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue