mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +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
|
@ -27,11 +27,11 @@ public:
|
|||
void set_line(size_t line) { m_line = line; }
|
||||
void set_column(size_t column) { m_column = column; }
|
||||
|
||||
bool operator==(const TextPosition& other) const { return m_line == other.m_line && m_column == other.m_column; }
|
||||
bool operator!=(const TextPosition& other) const { return m_line != other.m_line || m_column != other.m_column; }
|
||||
bool operator<(const TextPosition& other) const { return m_line < other.m_line || (m_line == other.m_line && m_column < other.m_column); }
|
||||
bool operator>(const TextPosition& other) const { return *this != other && !(*this < other); }
|
||||
bool operator>=(const TextPosition& other) const { return *this > other || (*this == other); }
|
||||
bool operator==(TextPosition const& other) const { return m_line == other.m_line && m_column == other.m_column; }
|
||||
bool operator!=(TextPosition const& other) const { return m_line != other.m_line || m_column != other.m_column; }
|
||||
bool operator<(TextPosition const& other) const { return m_line < other.m_line || (m_line == other.m_line && m_column < other.m_column); }
|
||||
bool operator>(TextPosition const& other) const { return *this != other && !(*this < other); }
|
||||
bool operator>=(TextPosition const& other) const { return *this > other || (*this == other); }
|
||||
|
||||
private:
|
||||
size_t m_line { 0xffffffff };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue