Execute clang-tidy and IWYU. (#576)

This commit is contained in:
Arthur Sonzogni
2023-02-12 14:07:28 +01:00
committed by GitHub
parent a4e70dfb93
commit 3e35f45830
8 changed files with 31 additions and 28 deletions

View File

@@ -27,7 +27,7 @@ Element vscroll_indicator(Element child) {
}
void SetBox(Box box) override {
Node::SetBox(box);
box_ = box;
box.x_max--;
children_[0]->SetBox(box);
}

View File

@@ -109,7 +109,7 @@ namespace {
Element MakeHorizontalFlexboxList(int n) {
Elements list;
for (int i = 0; i < n; ++i) {
list.push_back(text(std::to_string(i%10)));
list.push_back(text(std::to_string(i % 10)));
}
return flexbox(std::move(list)) | vscroll_indicator | yframe | border;
}
@@ -194,7 +194,7 @@ TEST(ScrollIndicator, HorizontalFlexbox) {
"╰────╯");
}
}
} // namespace
} // namespace ftxui