mirror of
				https://github.com/isledecomp/isle.git
				synced 2025-10-26 01:44:19 +00:00 
			
		
		
		
	cmake+ci: run clang-tidy (#512)
* cmake+ci: run clang-tidy
* Remove DESCRIPTION from LEGO1/LegoOmni.mingw.def
* Add initial .clang-tidy and fixes
* fix file perms
* Comment out DESCRIPTION
* Remove LegoEntity::~LegoEntity and MxPresenter::~MxPresenter from mingw's LEGO1.def
* Looks like clang is allergic to the libs in the directx5 SDK
* Update .clang-tidy
* Fix typo in .clang-tidy
* Attempt to generate an action error
* Revert "Attempt to generate an action error"
This reverts commit 96c4c65fed.
* cmake: test with -Wparentheses + optionally with -Werror
* ci: -k0 is a Ninja argument
* Use -Werror only for msys2 builds
* cmake: only emit warnings for specific warnings
* cmake: and don't do -Werror/-WX anymore
* Fix warnings
* Fix mingw warnings
---------
Co-authored-by: Christian Semmler <mail@csemmler.com>
			
			
This commit is contained in:
		 Anonymous Maarten
					Anonymous Maarten
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							97d1ba7c71
						
					
				
				
					commit
					9e686e2a87
				
			| @@ -21,26 +21,36 @@ Extra::ActionType MatchActionString(const char* p_str) | ||||
| { | ||||
| 	Extra::ActionType result = Extra::ActionType::e_unknown; | ||||
| 
 | ||||
| 	if (!strcmpi("openram", p_str)) | ||||
| 	if (!strcmpi("openram", p_str)) { | ||||
| 		result = Extra::ActionType::e_openram; | ||||
| 	else if (!strcmpi("opendisk", p_str)) | ||||
| 	} | ||||
| 	else if (!strcmpi("opendisk", p_str)) { | ||||
| 		result = Extra::ActionType::e_opendisk; | ||||
| 	else if (!strcmpi("close", p_str)) | ||||
| 	} | ||||
| 	else if (!strcmpi("close", p_str)) { | ||||
| 		result = Extra::ActionType::e_close; | ||||
| 	else if (!strcmpi("start", p_str)) | ||||
| 	} | ||||
| 	else if (!strcmpi("start", p_str)) { | ||||
| 		result = Extra::ActionType::e_start; | ||||
| 	else if (!strcmpi("stop", p_str)) | ||||
| 	} | ||||
| 	else if (!strcmpi("stop", p_str)) { | ||||
| 		result = Extra::ActionType::e_stop; | ||||
| 	else if (!strcmpi("run", p_str)) | ||||
| 	} | ||||
| 	else if (!strcmpi("run", p_str)) { | ||||
| 		result = Extra::ActionType::e_run; | ||||
| 	else if (!strcmpi("exit", p_str)) | ||||
| 	} | ||||
| 	else if (!strcmpi("exit", p_str)) { | ||||
| 		result = Extra::ActionType::e_exit; | ||||
| 	else if (!strcmpi("enable", p_str)) | ||||
| 	} | ||||
| 	else if (!strcmpi("enable", p_str)) { | ||||
| 		result = Extra::ActionType::e_enable; | ||||
| 	else if (!strcmpi("disable", p_str)) | ||||
| 	} | ||||
| 	else if (!strcmpi("disable", p_str)) { | ||||
| 		result = Extra::ActionType::e_disable; | ||||
| 	else if (!strcmpi("notify", p_str)) | ||||
| 	} | ||||
| 	else if (!strcmpi("notify", p_str)) { | ||||
| 		result = Extra::ActionType::e_notify; | ||||
| 	} | ||||
| 
 | ||||
| 	return result; | ||||
| } | ||||
| @@ -133,10 +143,12 @@ void ConvertHSVToRGB(float p_h, float p_s, float p_v, float* p_rOut, float* p_bO | ||||
| 
 | ||||
| 	double sDbl = p_s; | ||||
| 
 | ||||
| 	if (p_s > 0.5f) | ||||
| 	if (p_s > 0.5f) { | ||||
| 		calc = (1.0f - p_v) * p_s + p_v; | ||||
| 	else | ||||
| 	} | ||||
| 	else { | ||||
| 		calc = (p_v + 1.0) * sDbl; | ||||
| 	} | ||||
| 	if (calc <= 0.0) { | ||||
| 		*p_gOut = 0.0f; | ||||
| 		*p_bOut = 0.0f; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user