mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:57:46 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -2040,7 +2040,7 @@ size_t StringMetrics::offset_with_addition(StringMetrics const& offset, size_t c
|
|||
|
||||
bool Editor::Spans::contains_up_to_offset(Spans const& other, size_t offset) const
|
||||
{
|
||||
auto compare = [&]<typename K, typename V>(const HashMap<K, HashMap<K, V>>& left, const HashMap<K, HashMap<K, V>>& right) -> bool {
|
||||
auto compare = [&]<typename K, typename V>(HashMap<K, HashMap<K, V>> const& left, HashMap<K, HashMap<K, V>> const& right) -> bool {
|
||||
for (auto& entry : right) {
|
||||
if (entry.key > offset + 1)
|
||||
continue;
|
||||
|
|
|
@ -191,7 +191,7 @@ public:
|
|||
cursor = m_buffer.size();
|
||||
m_cursor = cursor;
|
||||
}
|
||||
const Vector<u32, 1024>& buffer() const { return m_buffer; }
|
||||
Vector<u32, 1024> const& buffer() const { return m_buffer; }
|
||||
u32 buffer_at(size_t pos) const { return m_buffer.at(pos); }
|
||||
String line() const { return line(m_buffer.size()); }
|
||||
String line(size_t up_to_index) const;
|
||||
|
|
|
@ -516,7 +516,7 @@ void Editor::uppercase_word()
|
|||
|
||||
void Editor::edit_in_external_editor()
|
||||
{
|
||||
const auto* editor_command = getenv("EDITOR");
|
||||
auto const* editor_command = getenv("EDITOR");
|
||||
if (!editor_command)
|
||||
editor_command = m_configuration.m_default_text_editor.characters();
|
||||
|
||||
|
@ -553,7 +553,7 @@ void Editor::edit_in_external_editor()
|
|||
}
|
||||
};
|
||||
|
||||
Vector<const char*> args { editor_command, file_path, nullptr };
|
||||
Vector<char const*> args { editor_command, file_path, nullptr };
|
||||
auto pid = fork();
|
||||
|
||||
if (pid == -1) {
|
||||
|
|
|
@ -80,7 +80,7 @@ struct Traits<Line::Key> : public GenericTraits<Line::Key> {
|
|||
template<>
|
||||
struct Traits<Vector<Line::Key>> : public GenericTraits<Vector<Line::Key>> {
|
||||
static constexpr bool is_trivial() { return false; }
|
||||
static unsigned hash(const Vector<Line::Key>& ks)
|
||||
static unsigned hash(Vector<Line::Key> const& ks)
|
||||
{
|
||||
unsigned h = 0;
|
||||
for (auto& k : ks)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue