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:
Rémi Verschelde 2020-03-17 07:33:00 +01:00
parent c5d76139dc
commit cb282c6ef0
247 changed files with 794 additions and 794 deletions

View file

@ -132,7 +132,7 @@ void EditorDebuggerTree::update_scene_tree(const SceneDebuggerTree *p_tree, int
const String filter = EditorNode::get_singleton()->get_scene_tree_dock()->get_filter();
// Nodes are in a flatten list, depth first. Use a stack of parents, avoid recursion.
List<Pair<TreeItem *, int> > parents;
List<Pair<TreeItem *, int>> parents;
for (int i = 0; i < p_tree->nodes.size(); i++) {
TreeItem *parent = NULL;
if (parents.size()) { // Find last parent.

View file

@ -611,8 +611,8 @@ bool EditorProfiler::is_profiling() {
return activate->is_pressed();
}
Vector<Vector<String> > EditorProfiler::get_data_as_csv() const {
Vector<Vector<String> > res;
Vector<Vector<String>> EditorProfiler::get_data_as_csv() const {
Vector<Vector<String>> res;
if (frame_metrics.empty()) {
return res;

View file

@ -169,7 +169,7 @@ public:
void clear();
Vector<Vector<String> > get_data_as_csv() const;
Vector<Vector<String>> get_data_as_csv() const;
EditorProfiler();
};

View file

@ -678,8 +678,8 @@ bool EditorVisualProfiler::is_profiling() {
return activate->is_pressed();
}
Vector<Vector<String> > EditorVisualProfiler::get_data_as_csv() const {
Vector<Vector<String> > res;
Vector<Vector<String>> EditorVisualProfiler::get_data_as_csv() const {
Vector<Vector<String>> res;
#if 0
if (frame_metrics.empty()) {
return res;

View file

@ -146,7 +146,7 @@ public:
void clear();
Vector<Vector<String> > get_data_as_csv() const;
Vector<Vector<String>> get_data_as_csv() const;
EditorVisualProfiler();
};

View file

@ -165,7 +165,7 @@ void ScriptEditorDebugger::_file_selected(const String &p_file) {
file->store_csv_line(line);
// values
List<Vector<float> >::Element *E = perf_history.back();
List<Vector<float>>::Element *E = perf_history.back();
while (E) {
Vector<float> &perf_data = E->get();
@ -178,7 +178,7 @@ void ScriptEditorDebugger::_file_selected(const String &p_file) {
}
file->store_string("\n");
Vector<Vector<String> > profiler_data = profiler->get_data_as_csv();
Vector<Vector<String>> profiler_data = profiler->get_data_as_csv();
for (int i = 0; i < profiler_data.size(); i++) {
file->store_csv_line(profiler_data[i]);
}
@ -728,7 +728,7 @@ void ScriptEditorDebugger::_performance_draw() {
float spacing = point_sep / float(cols);
float from = r.size.width;
List<Vector<float> >::Element *E = perf_history.front();
List<Vector<float>>::Element *E = perf_history.front();
float prev = -1;
while (from >= 0 && E) {

View file

@ -109,7 +109,7 @@ private:
// Each debugger should have it's tree in the future I guess.
const Tree *editor_remote_tree = NULL;
List<Vector<float> > perf_history;
List<Vector<float>> perf_history;
Vector<float> perf_max;
Vector<TreeItem *> perf_items;