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

@@ -1,8 +1,8 @@
#ifndef FTXUI_SCREEN_COLOR
#define FTXUI_SCREEN_COLOR
#ifndef FTXUI_SCREEN_COLOR_HPP
#define FTXUI_SCREEN_COLOR_HPP
#include <stdint.h> // for uint8_t
#include <string> // for wstring
#include <cstdint> // for uint8_t
#include <string> // for wstring
#ifdef RGB
// Workaround for wingdi.h (via Windows.h) defining macros that break things.
@@ -313,12 +313,8 @@ class Color {
Palette256,
TrueColor,
};
ColorType type_;
union {
uint8_t index_ = 0;
uint8_t red_;
};
ColorType type_ = ColorType::Palette1;
uint8_t red_ = 0;
uint8_t green_ = 0;
uint8_t blue_ = 0;
};
@@ -333,7 +329,7 @@ Color operator""_rgb(unsigned long long int combined);
} // namespace ftxui
#endif /* end of include guard: FTXUI_COLOR_H_ */
#endif // FTXUI_SCREEN_COLOR_HPP
// Copyright 2020 Arthur Sonzogni. All rights reserved.
// Use of this source code is governed by the MIT license that can be found in