mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 09:58:14 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
8639d8bc21
commit
d26aabff04
140 changed files with 1202 additions and 723 deletions
|
@ -27,9 +27,9 @@ namespace AK::Format::Detail {
|
|||
template<typename T, size_t Size>
|
||||
struct Array {
|
||||
constexpr static size_t size() { return Size; }
|
||||
constexpr const T& operator[](size_t index) const { return __data[index]; }
|
||||
constexpr T const& operator[](size_t index) const { return __data[index]; }
|
||||
constexpr T& operator[](size_t index) { return __data[index]; }
|
||||
using ConstIterator = SimpleIterator<const Array, const T>;
|
||||
using ConstIterator = SimpleIterator<const Array, T const>;
|
||||
using Iterator = SimpleIterator<Array, T>;
|
||||
|
||||
constexpr ConstIterator begin() const { return ConstIterator::begin(*this); }
|
||||
|
@ -155,7 +155,8 @@ struct CheckedFormatString {
|
|||
}
|
||||
|
||||
template<typename T>
|
||||
CheckedFormatString(const T& unchecked_fmt) requires(requires(T t) { StringView { t }; })
|
||||
CheckedFormatString(T const& unchecked_fmt)
|
||||
requires(requires(T t) { StringView { t }; })
|
||||
: m_string(unchecked_fmt)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue