Set clang-format macro indent.

1) Set clang-format macro indent.
2) Run clang-format on every files.
This commit is contained in:
ArthurSonzogni
2020-03-23 21:26:00 +01:00
parent 9e71c467f6
commit 493e734680
30 changed files with 110 additions and 104 deletions

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

@@ -1,15 +1,15 @@
#ifndef FTXUI_SCREEN_SCREEN
#define FTXUI_SCREEN_SCREEN
#include <memory>
#include <string>
#include <vector>
#include <memory>
#include "ftxui/screen/color.hpp"
#include "ftxui/screen/box.hpp"
#include "ftxui/screen/color.hpp"
namespace ftxui {
class Node;
class Node;
}
namespace ftxui {
@@ -49,8 +49,8 @@ class Screen {
std::string ToString();
// Get screen dimensions.
int dimx() { return dimx_;}
int dimy() { return dimy_;}
int dimx() { return dimx_; }
int dimy() { return dimy_; }
// Move the terminal cursor n-lines up with n = dimy().
std::string ResetPosition();

View File

@@ -6,7 +6,7 @@
std::string to_string(const std::wstring& s);
std::wstring to_wstring(const std::string& s);
template<typename T>
template <typename T>
std::wstring to_wstring(T s) {
return to_wstring(std::to_string(s));
}