mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-10-31 18:48:11 +08:00 
			
		
		
		
	Generate compile commands for clangd. (#855)
Fix all the diagnostics reported. Bug: https://github.com/ArthurSonzogni/FTXUI/issues/828
This commit is contained in:
		 Arthur Sonzogni
					Arthur Sonzogni
				
			
				
					committed by
					
						 ArthurSonzogni
						ArthurSonzogni
					
				
			
			
				
	
			
			
			 ArthurSonzogni
						ArthurSonzogni
					
				
			
						parent
						
							6a755f3760
						
					
				
				
					commit
					8a2a9b0799
				
			| @@ -6,7 +6,6 @@ | ||||
|  | ||||
| #include <cstdint>  // for uint8_t | ||||
| #include <string>   // for string | ||||
| #include <vector>   // for vector | ||||
|  | ||||
| #ifdef RGB | ||||
| // Workaround for wingdi.h (via Windows.h) defining macros that break things. | ||||
| @@ -24,10 +23,12 @@ class Color { | ||||
|   enum Palette16 : uint8_t; | ||||
|   enum Palette256 : uint8_t; | ||||
|  | ||||
|   // NOLINTBEGIN | ||||
|   Color();                  // Transparent. | ||||
|   Color(Palette1 index);    // Transparent. | ||||
|   Color(Palette16 index);   // Implicit conversion from index to Color. | ||||
|   Color(Palette256 index);  // Implicit conversion from index to Color. | ||||
|   // NOLINTEND | ||||
|   Color(uint8_t red, uint8_t green, uint8_t blue); | ||||
|   static Color RGB(uint8_t red, uint8_t green, uint8_t blue); | ||||
|   static Color HSV(uint8_t hue, uint8_t saturation, uint8_t value); | ||||
|   | ||||
| @@ -4,8 +4,6 @@ | ||||
| #ifndef FTXUI_SCREEN_IMAGE_HPP | ||||
| #define FTXUI_SCREEN_IMAGE_HPP | ||||
|  | ||||
| #include <cstdint>  // for uint8_t | ||||
| #include <memory> | ||||
| #include <string>  // for string, basic_string, allocator | ||||
| #include <vector>  // for vector | ||||
|  | ||||
|   | ||||
| @@ -5,11 +5,9 @@ | ||||
| #define FTXUI_SCREEN_SCREEN_HPP | ||||
|  | ||||
| #include <cstdint>  // for uint8_t | ||||
| #include <memory> | ||||
| #include <string>  // for string, basic_string, allocator | ||||
| #include <vector>  // for vector | ||||
| #include <string>   // for string, basic_string, allocator | ||||
| #include <vector>   // for vector | ||||
|  | ||||
| #include "ftxui/screen/color.hpp"     // for Color, Color::Default | ||||
| #include "ftxui/screen/image.hpp"     // for Pixel, Image | ||||
| #include "ftxui/screen/terminal.hpp"  // for Dimensions | ||||
|  | ||||
|   | ||||
| @@ -4,10 +4,8 @@ | ||||
| #ifndef FTXUI_SCREEN_STRING_HPP | ||||
| #define FTXUI_SCREEN_STRING_HPP | ||||
|  | ||||
| #include <stddef.h>  // for size_t | ||||
| #include <cstdint>   // for uint8_t | ||||
| #include <string>    // for string, wstring, to_string | ||||
| #include <vector>    // for vector | ||||
| #include <string>  // for string, wstring, to_string | ||||
| #include <vector>  // for vector | ||||
|  | ||||
| namespace ftxui { | ||||
| std::string to_string(const std::wstring& s); | ||||
| @@ -30,6 +28,4 @@ std::vector<int> CellToGlyphIndex(const std::string& input); | ||||
|  | ||||
| }  // namespace ftxui | ||||
|  | ||||
| #include "ftxui/screen/deprecated.hpp" | ||||
|  | ||||
| #endif /* end of include guard: FTXUI_SCREEN_STRING_HPP */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user