diff options
| author | Rémi Verschelde | 2017-03-19 00:36:26 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2017-03-19 00:36:26 +0100 |
| commit | f8db8a3faa30b71dca33ced38be16d3f93f43e8a (patch) | |
| tree | 3b798318132cca7eccfbca5818ab55656a2896d7 /editor/doc/doc_data.h | |
| parent | 1d418afe863c9e553b69174ce63aef203c46d2f0 (diff) | |
| download | godot-f8db8a3faa30b71dca33ced38be16d3f93f43e8a.tar.gz godot-f8db8a3faa30b71dca33ced38be16d3f93f43e8a.tar.zst godot-f8db8a3faa30b71dca33ced38be16d3f93f43e8a.zip | |
Bring that Whole New World to the Old Continent too
Applies the clang-format style to the 2.1 branch as done for master in
5dbf1809c6e3e905b94b8764e99491e608122261.
Diffstat (limited to 'editor/doc/doc_data.h')
| -rw-r--r-- | editor/doc/doc_data.h | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/editor/doc/doc_data.h b/editor/doc/doc_data.h index 0dd06636f..ad830f36e 100644 --- a/editor/doc/doc_data.h +++ b/editor/doc/doc_data.h @@ -29,12 +29,11 @@ #ifndef DOC_DATA_H #define DOC_DATA_H - -#include "variant.h" -#include "map.h" #include "io/xml_parser.h" +#include "map.h" +#include "variant.h" -class DocData { +class DocData { public: struct ArgumentDoc { @@ -50,8 +49,8 @@ public: String qualifiers; String description; Vector<ArgumentDoc> arguments; - bool operator<(const MethodDoc& p_md) const { - return name<p_md.name; + bool operator<(const MethodDoc &p_md) const { + return name < p_md.name; } }; @@ -67,12 +66,12 @@ public: String name; String type; String description; - bool operator<(const PropertyDoc& p_prop) const { - return name<p_prop.name; + bool operator<(const PropertyDoc &p_prop) const { + return name < p_prop.name; } }; - struct ClassDoc { + struct ClassDoc { String name; String inherits; @@ -84,25 +83,20 @@ public: Vector<ConstantDoc> constants; Vector<PropertyDoc> properties; Vector<PropertyDoc> theme_properties; - }; String version; - Map<String,ClassDoc> class_list; + Map<String, ClassDoc> class_list; Error _load(Ref<XMLParser> parser); - public: - - void merge_from(const DocData& p_data); - void generate(bool p_basic_types=false); - Error load(const String& p_path); - Error save(const String& p_path); + void merge_from(const DocData &p_data); + void generate(bool p_basic_types = false); + Error load(const String &p_path); + Error save(const String &p_path); Error load_compressed(const uint8_t *p_data, int p_compressed_size, int p_uncompressed_size); - - }; #endif // DOC_DATA_H |
