You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Style: Set clang-format Standard to Cpp11
For us, it practically only changes the fact that `A<A<int>>` is now used instead of the C++03 compatible `A<A<int> >`. Note: clang-format 10+ changed the `Standard` arguments to fully specified `c++11`, `c++14`, etc. versions, but we can't use `c++17` now if we want to preserve compatibility with clang-format 8 and 9. `Cpp11` is still supported as deprecated alias for `Latest`.
This commit is contained in:
@@ -98,7 +98,7 @@ struct SignalAPI {
|
||||
|
||||
struct EnumAPI {
|
||||
String name;
|
||||
List<Pair<int, String> > values;
|
||||
List<Pair<int, String>> values;
|
||||
};
|
||||
|
||||
struct ClassAPI {
|
||||
@@ -395,7 +395,7 @@ List<ClassAPI> generate_c_api_classes() {
|
||||
int int_val = ClassDB::get_integer_constant(class_name, val_e->get(), NULL);
|
||||
enum_api.values.push_back(Pair<int, String>(int_val, val_e->get()));
|
||||
}
|
||||
enum_api.values.sort_custom<PairSort<int, String> >();
|
||||
enum_api.values.sort_custom<PairSort<int, String>>();
|
||||
class_api.enums.push_back(enum_api);
|
||||
}
|
||||
}
|
||||
@@ -497,7 +497,7 @@ static List<String> generate_c_api_json(const List<ClassAPI> &p_api) {
|
||||
source.push_back("\t\t\t{\n");
|
||||
source.push_back("\t\t\t\t\"name\": \"" + e->get().name + "\",\n");
|
||||
source.push_back("\t\t\t\t\"values\": {\n");
|
||||
for (List<Pair<int, String> >::Element *val_e = e->get().values.front(); val_e; val_e = val_e->next()) {
|
||||
for (List<Pair<int, String>>::Element *val_e = e->get().values.front(); val_e; val_e = val_e->next()) {
|
||||
source.push_back("\t\t\t\t\t\"" + val_e->get().second + "\": " + itos(val_e->get().first));
|
||||
source.push_back(String((val_e->next() ? "," : "")) + "\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user