Lines Matching +full:clang +full:- +full:format
1 # This file is a minimal clang-format sublime-integration. To install:
2 # - Change 'binary' if clang-format is not on the path (see below).
3 # - Put this file into your sublime Packages directory, e.g. on Linux:
4 # ~/.config/sublime-text-2/Packages/User/clang-format-sublime.py
5 # - Add a key binding:
8 # With this integration you can press the bound key and clang-format will
9 # format the current lines and selections for all cursor positions. The lines
20 # Change this to the full path if clang-format is not on the path.
21 binary = 'clang-format'
23 # Change this to format according to other formatting styles. See the output of
24 # 'clang-format --help' for a list of supported styles. The default looks for
25 # a '.clang-format' or '_clang-format' file to indicate the style that should be
33 encoding = 'utf-8'
35 command = [binary, '-style', style]
39 region_length = abs(region.b - region.a)
40 command.extend(['-offset', str(region_offset),
41 '-length', str(region_length),
42 '-assume-filename', str(self.view.file_name())])