mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:47:44 +00:00
Add clang-format file
Also run it across the whole tree to get everything using the One True Style. We don't yet run this in an automated fashion as it's a little slow, but there is a snippet to do so in makeall.sh.
This commit is contained in:
parent
c11351ac50
commit
0dc9af5f7e
286 changed files with 3244 additions and 2424 deletions
|
@ -3,12 +3,12 @@
|
|||
#include <AK/AKString.h>
|
||||
#include <AK/Types.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <SharedGraphics/GraphicsBitmap.h>
|
||||
#include <SharedGraphics/Rect.h>
|
||||
#include <LibGUI/GFrame.h>
|
||||
#include <LibCore/CConfigFile.h>
|
||||
#include <LibCore/CNotifier.h>
|
||||
#include <LibCore/CTimer.h>
|
||||
#include <LibCore/CConfigFile.h>
|
||||
#include <LibGUI/GFrame.h>
|
||||
#include <SharedGraphics/GraphicsBitmap.h>
|
||||
#include <SharedGraphics/Rect.h>
|
||||
|
||||
class Font;
|
||||
|
||||
|
@ -45,7 +45,6 @@ private:
|
|||
void invalidate_cursor();
|
||||
void set_window_title(const String&);
|
||||
|
||||
|
||||
void inject_string(const String&);
|
||||
void unimplemented_escape();
|
||||
void unimplemented_xterm_escape();
|
||||
|
@ -107,7 +106,11 @@ private:
|
|||
bool dirty { false };
|
||||
word length { 0 };
|
||||
};
|
||||
Line& line(size_t index) { ASSERT(index < m_rows); return *m_lines[index]; }
|
||||
Line& line(size_t index)
|
||||
{
|
||||
ASSERT(index < m_rows);
|
||||
return *m_lines[index];
|
||||
}
|
||||
|
||||
Line** m_lines { nullptr };
|
||||
|
||||
|
@ -125,7 +128,8 @@ private:
|
|||
void execute_escape_sequence(byte final);
|
||||
void execute_xterm_command();
|
||||
|
||||
enum EscapeState {
|
||||
enum EscapeState
|
||||
{
|
||||
Normal,
|
||||
ExpectBracket,
|
||||
ExpectParameter,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue