1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:28:10 +00: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
1665 changed files with 8479 additions and 8479 deletions

View file

@ -33,7 +33,7 @@ void EditingEngine::detach()
m_editor = nullptr;
}
bool EditingEngine::on_key(const KeyEvent& event)
bool EditingEngine::on_key(KeyEvent const& event)
{
if (event.key() == KeyCode::Key_Left) {
if (!event.shift() && m_editor->selection().is_valid()) {
@ -268,7 +268,7 @@ void EditingEngine::move_to_logical_line_end()
m_editor->set_cursor({ m_editor->cursor().line(), m_editor->current_line().length() });
}
void EditingEngine::move_one_up(const KeyEvent& event)
void EditingEngine::move_one_up(KeyEvent const& event)
{
if (m_editor->cursor().line() > 0 || m_editor->is_wrapping_enabled()) {
if (event.ctrl() && event.shift()) {
@ -288,7 +288,7 @@ void EditingEngine::move_one_up(const KeyEvent& event)
}
};
void EditingEngine::move_one_down(const KeyEvent& event)
void EditingEngine::move_one_down(KeyEvent const& event)
{
if (m_editor->cursor().line() < (m_editor->line_count() - 1) || m_editor->is_wrapping_enabled()) {
if (event.ctrl() && event.shift()) {
@ -406,7 +406,7 @@ TextPosition EditingEngine::find_beginning_of_next_word()
for (size_t column_index = 0; column_index < lines.at(line_index).length(); column_index++) {
if (line_index == cursor.line() && column_index < cursor.column())
continue;
const u32* line_chars = line.view().code_points();
u32 const* line_chars = line.view().code_points();
const u32 current_char = line_chars[column_index];
if (started_on_punct && is_vim_alphanumeric(current_char)) {
@ -470,7 +470,7 @@ TextPosition EditingEngine::find_end_of_next_word()
if (line_index == cursor.line() && column_index < cursor.column())
continue;
const u32* line_chars = line.view().code_points();
u32 const* line_chars = line.view().code_points();
const u32 current_char = line_chars[column_index];
if (column_index == lines.at(line_index).length() - 1 && !is_first_iteration && (is_vim_alphanumeric(current_char) || is_vim_punctuation(current_char)))
@ -526,7 +526,7 @@ TextPosition EditingEngine::find_end_of_previous_word()
if (line_index == cursor.line() && column_index > cursor.column())
continue;
const u32* line_chars = line.view().code_points();
u32 const* line_chars = line.view().code_points();
const u32 current_char = line_chars[column_index];
if (started_on_punct && is_vim_alphanumeric(current_char)) {
@ -591,7 +591,7 @@ TextPosition EditingEngine::find_beginning_of_previous_word()
continue;
}
const u32* line_chars = line.view().code_points();
u32 const* line_chars = line.view().code_points();
const u32 current_char = line_chars[column_index];
if (column_index == 0 && !is_first_iteration && (is_vim_alphanumeric(current_char) || is_vim_punctuation(current_char))) {