You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +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:
@@ -172,7 +172,7 @@ void SceneTree::_flush_ugc() {
|
||||
|
||||
while (unique_group_calls.size()) {
|
||||
|
||||
Map<UGCall, Vector<Variant> >::Element *E = unique_group_calls.front();
|
||||
Map<UGCall, Vector<Variant>>::Element *E = unique_group_calls.front();
|
||||
|
||||
Variant v[VARIANT_ARG_MAX];
|
||||
for (int i = 0; i < E->get().size(); i++)
|
||||
@@ -546,11 +546,11 @@ bool SceneTree::idle(float p_time) {
|
||||
|
||||
//go through timers
|
||||
|
||||
List<Ref<SceneTreeTimer> >::Element *L = timers.back(); //last element
|
||||
List<Ref<SceneTreeTimer>>::Element *L = timers.back(); //last element
|
||||
|
||||
for (List<Ref<SceneTreeTimer> >::Element *E = timers.front(); E;) {
|
||||
for (List<Ref<SceneTreeTimer>>::Element *E = timers.front(); E;) {
|
||||
|
||||
List<Ref<SceneTreeTimer> >::Element *N = E->next();
|
||||
List<Ref<SceneTreeTimer>>::Element *N = E->next();
|
||||
if (pause && !E->get()->is_pause_mode_process()) {
|
||||
if (E == L) {
|
||||
break; //break on last, so if new timers were added during list traversal, ignore them.
|
||||
@@ -625,7 +625,7 @@ void SceneTree::finish() {
|
||||
}
|
||||
|
||||
// cleanup timers
|
||||
for (List<Ref<SceneTreeTimer> >::Element *E = timers.front(); E; E = E->next()) {
|
||||
for (List<Ref<SceneTreeTimer>>::Element *E = timers.front(); E; E = E->next()) {
|
||||
E->get()->release_connections();
|
||||
}
|
||||
timers.clear();
|
||||
|
||||
Reference in New Issue
Block a user