Lines Matching refs:clang_format
81 def ClangFormatIsAvailable(clang_format): argument
82 if not util.IsCommandAvailable(clang_format):
84 version = subprocess.check_output([clang_format, '-version'])
93 def ClangFormat(filename, clang_format, in_place = False, progress_prefix = ''): argument
98 cmd_format = [clang_format, filename]
123 cmd_format = [clang_format, '-i', filename]
150 def ClangFormatFiles(files, clang_format, in_place = False, jobs = 1, argument
152 if not ClangFormatIsAvailable(clang_format):
155 .format(clang_format,
165 tasks = [(f, clang_format, in_place, progress_prefix) for f in files]
225 rc = ClangFormatFiles(files, clang_format = args.clang_format,