1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:07:45 +00:00

Everywhere: Run clang-format

This commit is contained in:
Linus Groh 2022-10-17 00:06:11 +02:00
parent 8639d8bc21
commit d26aabff04
140 changed files with 1202 additions and 723 deletions

View file

@ -17,12 +17,13 @@ struct Tuple {
template<typename T>
struct Tuple<T> {
Tuple(T&& value) requires(!IsSame<T&&, const T&>)
Tuple(T&& value)
requires(!IsSame < T &&, T const& >)
: value(forward<T>(value))
{
}
Tuple(const T& value)
Tuple(T const& value)
: value(value)
{
}
@ -35,7 +36,7 @@ struct Tuple<T> {
}
template<typename U>
const U& get() const
U const& get() const
{
return const_cast<Tuple<T>&>(*this).get<U>();
}
@ -48,7 +49,7 @@ struct Tuple<T> {
}
template<typename U, unsigned index>
const U& get_with_index() const
U const& get_with_index() const
{
return const_cast<Tuple<T>&>(*this).get_with_index<U, index>();
}
@ -83,7 +84,7 @@ struct Tuple<T, TRest...> : Tuple<TRest...> {
}
template<typename U>
const U& get() const
U const& get() const
{
return const_cast<Tuple<T, TRest...>&>(*this).get<U>();
}
@ -98,7 +99,7 @@ struct Tuple<T, TRest...> : Tuple<TRest...> {
}
template<typename U, unsigned index>
const U& get_with_index() const
U const& get_with_index() const
{
return const_cast<Tuple<T, TRest...>&>(*this).get_with_index<U, index>();
}