mirror of
				https://github.com/PaddlePaddle/FastDeploy.git
				synced 2025-10-31 03:46:40 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			361 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			361 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/bash
 | ||
| set -e
 | ||
| 
 | ||
| readonly VERSION="3.8"
 | ||
| 
 | ||
| version=$(clang-format -version)
 | ||
| 
 | ||
| if ! [[ version==∗"VERSION"* ]]; then
 | ||
|     echo "clang-format version check failed."
 | ||
|     echo "a version contains 'VERSION′isneeded,butget′version'"
 | ||
|     echo "you can install the right version, and make an soft-link to '$PATH' env"
 | ||
|     exit -1
 | ||
| fi
 | ||
| 
 | ||
| clang-format -style=google $@
 | 
