Lines Matching refs:format
3 #===- git-clang-format - ClangFormat Git Integration ---------*- python -*--===#
13 clang-format git integration
16 This file provides a clang-format integration for git. Put it somewhere in your
17 path and ensure that it is executable. Then, "git clang-format" will invoke
18 clang-format on the changes in current files or a specific commit.
21 git clang-format -h
35 usage = 'git clang-format [OPTIONS] [<commit>] [--] [<file>...]'
38 Run clang-format on all lines that differ between the working directory
49 # Name of the temporary index file in which save the output of clang-format.
51 temp_index_basename = 'clang-format-index'
78 # Other languages that clang-format supports
87 default=config.get('clangformat.binary', 'clang-format'),
88 help='path to clang-format'),
97 help=('comma-separated list of file extensions to format, '
107 help='passed to clang-format'),
134 print 'Running clang-format on the following files:'
138 print 'no modified files to format'
152 print 'clang-format did not modify any files'
275 The input must have been produced with ``-U0``, meaning unidiff format with
319 def run_clang_format_and_save_to_tree(changed_lines, binary='clang-format',
321 """Run clang-format on each file and save the result to a git tree.
353 def clang_format_to_blob(filename, line_ranges, binary='clang-format',
355 """Run clang-format on the given file and save the result to a git blob.