mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 11:39:43 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
Notes:
sideshowbarker
2024-07-17 16:21:09 +09:00
Author: https://github.com/IdanHo
Commit: 086969277e
Pull-request: https://github.com/SerenityOS/serenity/pull/12321
Reviewed-by: https://github.com/BertalanD
Reviewed-by: https://github.com/bgianfo ✅
1665 changed files with 8479 additions and 8479 deletions
|
@ -17,12 +17,12 @@ struct Range {
|
|||
size_t m_from { 1 };
|
||||
size_t m_to { SIZE_MAX };
|
||||
|
||||
[[nodiscard]] bool intersects(const Range& other) const
|
||||
[[nodiscard]] bool intersects(Range const& other) const
|
||||
{
|
||||
return !(other.m_from > m_to || other.m_to < m_from);
|
||||
}
|
||||
|
||||
void merge(const Range& other)
|
||||
void merge(Range const& other)
|
||||
{
|
||||
// Can't merge two ranges that are disjoint.
|
||||
VERIFY(intersects(other));
|
||||
|
@ -120,7 +120,7 @@ static bool expand_list(String& list, Vector<Range>& ranges)
|
|||
return true;
|
||||
}
|
||||
|
||||
static void process_line_bytes(char* line, size_t length, const Vector<Range>& ranges)
|
||||
static void process_line_bytes(char* line, size_t length, Vector<Range> const& ranges)
|
||||
{
|
||||
for (auto& i : ranges) {
|
||||
if (i.m_from >= length)
|
||||
|
@ -133,7 +133,7 @@ static void process_line_bytes(char* line, size_t length, const Vector<Range>& r
|
|||
outln();
|
||||
}
|
||||
|
||||
static void process_line_fields(char* line, size_t length, const Vector<Range>& ranges, char delimiter)
|
||||
static void process_line_fields(char* line, size_t length, Vector<Range> const& ranges, char delimiter)
|
||||
{
|
||||
auto string_split = String(line, length).split(delimiter);
|
||||
Vector<String> output_fields;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue