mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-11-01 02:58:12 +08:00 
			
		
		
		
	Use IWYU.
This commit is contained in:
		
							
								
								
									
										11
									
								
								tools/iwyu.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										11
									
								
								tools/iwyu.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| #!/bin/bash | ||||
| cd "$(dirname "$0")" | ||||
| cd .. | ||||
| mapping_dir=$(pwd) | ||||
| mkdir -p iwyu | ||||
| cd iwyu | ||||
| rm * -rf | ||||
| echo $CMAKE_CXX_INCLUDE_WHAT_YOU_USE | ||||
| cmake .. -DFTXUI_BUILD_TESTS=ON -DCMAKE_CXX_INCLUDE_WHAT_YOU_USE="iwyu;-Xiwyu;--cxx17ns;-Xiwyu;--mapping_file=${mapping_dir}/iwyu.imp;-Xiwyu;--verbose=3" | ||||
| make -j 2>out | ||||
| fix_include --comments < out | ||||
		Reference in New Issue
	
	Block a user
	 ArthurSonzogni
					ArthurSonzogni