Run IWYU and clang-format

This commit is contained in:
ArthurSonzogni 2023-08-06 13:25:42 +02:00
parent b0a7f88f07
commit 00e63993ce
No known key found for this signature in database
GPG Key ID: 41D98248C074CD6C
2 changed files with 999 additions and 997 deletions

View File

@ -1,5 +1,5 @@
#include <iostream>
#include <benchmark/benchmark.h>
#include <iostream>
#include "ftxui/dom/elements.hpp" // for gauge, separator, operator|, text, Element, hbox, vbox, blink, border, inverted
#include "ftxui/dom/node.hpp" // for Render
@ -61,7 +61,8 @@ static void BenchmarkStyle(benchmark::State& state) {
text("Test") | bgcolor(Color::Red),
text("Test") | color(Color::RGB(42, 87, 124)),
text("Test") | bgcolor(Color::RGB(42, 87, 124)),
text("Test") | color(Color::RGB(42, 87, 124)) | bgcolor(Color::RGB(172, 94, 212)),
text("Test") | color(Color::RGB(42, 87, 124)) |
bgcolor(Color::RGB(172, 94, 212)),
text("Test") | blink,
text("Test") | automerge,
}));

View File

@ -75,7 +75,8 @@ struct WordBreakPropertyInterval {
// Properties from:
// https://www.unicode.org/Public/UCD/latest/ucd/auxiliary/WordBreakProperty.txt
static constexpr std::array<WordBreakPropertyInterval, 993> g_word_break_intervals = {{
static constexpr std::array<WordBreakPropertyInterval, 993>
g_word_break_intervals = {{
{0x0000A, 0x0000A, WBP::LF},
{0x0000B, 0x0000C, WBP::Newline},
{0x0000D, 0x0000D, WBP::CR},
@ -1069,7 +1070,7 @@ static constexpr std::array<WordBreakPropertyInterval, 993> g_word_break_interva
{0xE0001, 0xE0001, WBP::Format},
{0xE0020, 0xE007F, WBP::Extend},
{0xE0100, 0xE01EF, WBP::Extend},
}};
}};
// Construct table of just WBP::Extend character intervals
constexpr auto g_extend_characters{[]() constexpr {