Support the -pedantic flag.

This commit is contained in:
ArthurSonzogni
2020-02-11 21:44:55 +01:00
parent 5637fa3a93
commit a8fdfafe6a
33 changed files with 81 additions and 85 deletions

View File

@@ -11,7 +11,7 @@ namespace ftxui {
using Element = std::unique_ptr<Node>;
using Elements = std::vector<Element>;
using Decorator = std::function<Element(Element)>;
using GraphFunction = std::function<std::vector<int>(int,int)>;
using GraphFunction = std::function<std::vector<int>(int, int)>;
// --- Widget ---
Element text(std::wstring text);
@@ -22,7 +22,7 @@ Element border(Element);
Decorator borderWith(Pixel);
Element window(Element title, Element content);
Element spinner(int charset_index, size_t image_index);
Elements paragraph(std::wstring text); // Use inside hflow(). Split by space.
Elements paragraph(std::wstring text); // Use inside hflow(). Split by space.
Element graph(GraphFunction);
// -- Decorator ---
@@ -83,6 +83,6 @@ TAKE_ANY_ARGS(hbox)
TAKE_ANY_ARGS(dbox)
TAKE_ANY_ARGS(hflow)
}; // namespace ftxui
} // namespace ftxui
#endif /* end of include guard: FTXUI_DOM_ELEMENTS_HPP */

View File

@@ -37,6 +37,6 @@ class Node {
void Render(Screen& screen, Node* node);
}; // namespace ftxui
} // namespace ftxui
#endif /* end of include guard: FTXUI_DOM_NODE_HPP */

View File

@@ -21,6 +21,6 @@ struct Requirement {
Box selected_box;
};
}; // namespace ftxui
} // namespace ftxui
#endif /* end of include guard: FTXUI_REQUIREMENT_HPP */

View File

@@ -12,6 +12,6 @@ struct Box {
static Box Intersection(Box a, Box b);
};
}; // namespace ftxui
} // namespace ftxui
#endif /* end of include guard: FTXUI_SCREEN_BOX_HPP */

View File

@@ -35,6 +35,6 @@ enum class Color : uint8_t {
YellowLight = 93,
};
}; // namespace ftxui
} // namespace ftxui
#endif /* end of include guard: FTXUI_COLOR_H_ */

View File

@@ -75,6 +75,6 @@ class Screen {
Cursor cursor_;
};
}; // namespace ftxui
} // namespace ftxui
#endif /* end of include guard: FTXUI_SCREEN_SCREEN */