mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:58:11 +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
|
@ -1,11 +1,11 @@
|
|||
#pragma once
|
||||
|
||||
#include <SharedGraphics/Color.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <AK/HashMap.h>
|
||||
#include <AK/AKString.h>
|
||||
#include <AK/Retainable.h>
|
||||
#include <AK/HashMap.h>
|
||||
#include <AK/RetainPtr.h>
|
||||
#include <AK/Retainable.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <SharedGraphics/Color.h>
|
||||
|
||||
class CConfigFile : public Retainable<CConfigFile> {
|
||||
public:
|
||||
|
@ -22,18 +22,18 @@ public:
|
|||
String read_entry(const String& group, const String& key, const String& default_vaule = String()) const;
|
||||
int read_num_entry(const String& group, const String& key, int default_value = 0) const;
|
||||
bool read_bool_entry(const String& group, const String& key, bool default_value = false) const;
|
||||
Color read_color_entry(const String& group, const String &key, Color default_value) const;
|
||||
Color read_color_entry(const String& group, const String& key, Color default_value) const;
|
||||
|
||||
void write_entry(const String& group, const String& key, const String &value);
|
||||
void write_entry(const String& group, const String& key, const String& value);
|
||||
void write_num_entry(const String& group, const String& key, int value);
|
||||
void write_bool_entry(const String& group, const String& key, bool value);
|
||||
void write_color_entry(const String& group, const String& key, Color value);
|
||||
|
||||
void dump() const;
|
||||
void dump() const;
|
||||
|
||||
bool is_dirty() const { return m_dirty; }
|
||||
|
||||
bool sync();
|
||||
bool sync();
|
||||
|
||||
void remove_group(const String& group);
|
||||
void remove_entry(const String& group, const String& key);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue