mirror of
				https://github.com/diamante0018/MW3ServerFreezer.git
				synced 2025-10-31 00:16:59 +00:00 
			
		
		
		
	Compare commits
	
		
			3 Commits
		
	
	
		
			4d594e9463
			...
			88905609f5
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 88905609f5 | ||
|  | 890e4a6d92 | ||
| c5f4a1db71 | 
							
								
								
									
										28
									
								
								.github/workflows/check-formatting.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								.github/workflows/check-formatting.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| name: check-formatting | ||||
|  | ||||
| on: | ||||
|   push: | ||||
|     branches: | ||||
|       - "*" | ||||
|   pull_request: | ||||
|     branches: | ||||
|       - "*" | ||||
|     types: [opened, synchronize, reopened] | ||||
|  | ||||
| jobs: | ||||
|   check-formatting: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - name: Checkout repository | ||||
|         uses: actions/checkout@main | ||||
|  | ||||
|       - name: Install LLVM and Clang | ||||
|         uses: KyleMayes/install-llvm-action@v2.0.2 | ||||
|         with: | ||||
|           version: "17.0" | ||||
|  | ||||
|       - name: Test formatting for all files | ||||
|         working-directory: ${{ github.workspace }} | ||||
|         run: | | ||||
|           export CLANG_FORMAT_BIN="${LLVM_PATH}/bin/clang-format" | ||||
|           ./scripts/check-format.sh | ||||
							
								
								
									
										2
									
								
								deps/GSL
									
									
									
									
										vendored
									
									
								
							
							
								
								
								
								
								
							
						
						
									
										2
									
								
								deps/GSL
									
									
									
									
										vendored
									
									
								
							 Submodule deps/GSL updated: 87f9d76886...ddae9d72b6
									
								
							
							
								
								
									
										2
									
								
								deps/libtomcrypt
									
									
									
									
										vendored
									
									
								
							
							
								
								
								
								
								
							
						
						
									
										2
									
								
								deps/libtomcrypt
									
									
									
									
										vendored
									
									
								
							 Submodule deps/libtomcrypt updated: cacfc2dc04...17642547e4
									
								
							
							
								
								
									
										8
									
								
								scripts/check-format.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										8
									
								
								scripts/check-format.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| # Go to repository root | ||||
| cd "$(dirname "$0")/.." || exit 2 | ||||
|  | ||||
| CLANG_FORMAT_BIN="${CLANG_FORMAT_BIN:-clang-format}" | ||||
|  | ||||
| find ./src -iname '*.hpp' -o -iname '*.cpp' | xargs $CLANG_FORMAT_BIN -Werror -ferror-limit=1 --dry-run | ||||
| @@ -19,8 +19,8 @@ public: | ||||
|  | ||||
|   template <typename T> static T* get() { | ||||
|     for (const auto& component_ : get_components()) { | ||||
|       if (typeid(*component_.get()) == typeid(T)) { | ||||
|         return reinterpret_cast<T*>(component_.get()); | ||||
|       if (auto c = dynamic_cast<T*>(component_.get())) { | ||||
|         return c; | ||||
|       } | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user