fix: use gn/clang-format from src (#19145)
* fix: use gn/clang-format from src * fix: download clang-format in lint job * chore: fix linting warning * chore: get_path_in_buildtools => get_buildtools_executable * chore: the clang-format npm package is not used
This commit is contained in:
		
					parent
					
						
							
								d79e6bbffe
							
						
					
				
			
			
				commit
				
					
						436d5c9ac1
					
				
			
		
					 7 changed files with 39 additions and 26 deletions
				
			
		| 
						 | 
				
			
			@ -22,6 +22,7 @@ import traceback
 | 
			
		|||
import tempfile
 | 
			
		||||
 | 
			
		||||
from functools import partial
 | 
			
		||||
from lib.util import get_buildtools_executable
 | 
			
		||||
 | 
			
		||||
DEFAULT_EXTENSIONS = 'c,h,C,H,cpp,hpp,cc,hh,c++,h++,cxx,hxx,mm'
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -188,7 +189,7 @@ def main():
 | 
			
		|||
        '--clang-format-executable',
 | 
			
		||||
        metavar='EXECUTABLE',
 | 
			
		||||
        help='path to the clang-format executable',
 | 
			
		||||
        default='clang-format')
 | 
			
		||||
        default=get_buildtools_executable('clang-format'))
 | 
			
		||||
    parser.add_argument(
 | 
			
		||||
        '--extensions',
 | 
			
		||||
        help='comma separated list of file extensions (default: {})'.format(
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue