Add clang-tidy. (#368)

This commit is contained in:
Arthur Sonzogni
2022-03-31 02:17:43 +02:00
committed by GitHub
parent 62fb6298be
commit aebde94352
80 changed files with 1958 additions and 1376 deletions

View File

@@ -12,7 +12,7 @@ namespace ftxui {
class DBox : public Node {
public:
DBox(Elements children) : Node(std::move(children)) {}
explicit DBox(Elements children) : Node(std::move(children)) {}
void ComputeRequirement() override {
requirement_.min_x = 0;
@@ -38,8 +38,9 @@ class DBox : public Node {
void SetBox(Box box) override {
Node::SetBox(box);
for (auto& child : children_)
for (auto& child : children_) {
child->SetBox(box);
}
}
};