Implementing clang-format and applying it to all classes

This commit is contained in:
Bastiaan Olij
2018-11-24 09:09:41 +11:00
parent 0a6f5d052a
commit fc20fa3fce
49 changed files with 2923 additions and 3172 deletions

View File

@@ -11,10 +11,11 @@ namespace godot {
class Dictionary {
godot_dictionary _godot_dictionary;
public:
Dictionary();
Dictionary(const Dictionary & other);
Dictionary & operator=(const Dictionary & other);
Dictionary(const Dictionary &other);
Dictionary &operator=(const Dictionary &other);
template <class... Args>
static Dictionary make(Args... args) {
@@ -25,19 +26,19 @@ public:
bool empty() const;
void erase(const Variant& key);
void erase(const Variant &key);
bool has(const Variant& key) const;
bool has(const Variant &key) const;
bool has_all(const Array& keys) const;
bool has_all(const Array &keys) const;
uint32_t hash() const;
Array keys() const;
Variant &operator [](const Variant& key);
Variant &operator[](const Variant &key);
const Variant &operator [](const Variant& key) const;
const Variant &operator[](const Variant &key) const;
int size() const;
@@ -46,9 +47,8 @@ public:
Array values() const;
~Dictionary();
};
}
} // namespace godot
#endif // DICTIONARY_H