1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09:00

Everywhere: Run clang-format

This commit is contained in:
Idan Horowitz 2022-04-01 20:58:27 +03:00 committed by Linus Groh
parent 0376c127f6
commit 086969277e
Notes: sideshowbarker 2024-07-17 16:21:09 +09:00
1665 changed files with 8479 additions and 8479 deletions

View file

@ -29,7 +29,7 @@ enum class Language {
struct TextStyle {
const Gfx::Color color;
const bool bold { false };
bool const bold { false };
};
class Highlighter {
@ -41,7 +41,7 @@ public:
virtual Language language() const = 0;
StringView language_string(Language) const;
virtual void rehighlight(const Palette&) = 0;
virtual void rehighlight(Palette const&) = 0;
virtual void highlight_matching_token_pair();
virtual bool is_identifier(u64) const { return false; };
@ -125,7 +125,7 @@ public:
private:
virtual Vector<GUI::TextDocumentSpan>& spans() override { return m_spans; }
virtual const Vector<GUI::TextDocumentSpan>& spans() const override { return m_spans; }
virtual Vector<GUI::TextDocumentSpan> const& spans() const override { return m_spans; }
virtual void set_span_at_index(size_t index, GUI::TextDocumentSpan span) override { m_spans.at(index) = move(span); }
virtual String highlighter_did_request_text() const override { return m_text; }