simplify formatting scripts, add a clang-tidy script, and run clang-tidy

This commit is contained in:
Nathan Franke
2022-01-27 10:34:33 -06:00
parent 01f5d7c616
commit 8a0a3accee
36 changed files with 288 additions and 244 deletions

View File

@@ -555,8 +555,9 @@ void TreeItem::uncollapse_tree() {
void TreeItem::set_custom_minimum_height(int p_height) {
custom_min_height = p_height;
for (Cell &c : cells)
for (Cell &c : cells) {
c.cached_minimum_size_dirty = true;
}
_changed_notify();
}
@@ -1092,8 +1093,9 @@ bool TreeItem::get_expand_right(int p_column) const {
void TreeItem::set_disable_folding(bool p_disable) {
disable_folding = p_disable;
for (Cell &c : cells)
for (Cell &c : cells) {
c.cached_minimum_size_dirty = true;
}
_changed_notify(0);
}