Lines Matching +refs:clang +refs:format

13 :program:`clang-format` is located in `clang/tools/clang-format` and can be used
14 to format C/C++/Java/JavaScript/Objective-C/Protobuf/C# code.
18 $ clang-format -help
19 OVERVIEW: A tool to format C/C++/Java/JavaScript/Objective-C/Protobuf/C# code.
27 USAGE: clang-format [options] [<file> ...]
31 Clang-format options:
35 =unknown - If set, unknown format options are only warned about.
39 differing format depending on an option being
42 When reading from stdin, clang-format assumes this
45 clang-format from an editor integration
50 fallback in case clang-format is invoked with
51 -style=file, but can not find the .clang-format
54 --ferror-limit=<uint> - Set the maximum number of clang-format errors to
62 -length, clang-format will format up to the end
65 --lines=<string> - <start line>:<end line> - format a range of
82 .clang-format file located in one of the parent
99 by putting your style configuration in the ``.clang-format`` or ``_clang-format``
100 file in your project's directory and using ``clang-format -style=file``.
102 An easy way to create the ``.clang-format`` file is:
106 clang-format -style=llvm -dump-config > .clang-format
115 :program:`clang-format` standalone tool on your current buffer, optionally
117 which can be found under `clang/tools/clang-format/clang-format.py`.
123 map <C-K> :pyf <path-to-this-file>/clang-format.py<cr>
124 imap <C-K> <c-o>:pyf <path-to-this-file>/clang-format.py<cr>
126 The first line enables :program:`clang-format` for NORMAL and VISUAL mode, the
128 you need :program:`clang-format` on a different key (C-K stands for Ctrl+k).
130 With this integration you can press the bound key and clang-format will
131 format the current line in NORMAL and INSERT mode or the selected region in
138 An alternative option is to format changes when saving a file and thus to
146 pyf ~/llvm/tools/clang/tools/clang-format/clang-format.py
155 :program:`emacs`. It can be found at `clang/tools/clang-format/clang-format.el`
160 (load "<path-to-clang>/tools/clang-format/clang-format.el")
161 (global-set-key [C-M-tab] 'clang-format-region)
163 This binds the function `clang-format-region` to C-M-tab, which then formats the
170 :program:`clang-format` cannot be used as a text filter with BBEdit, but works
172 `clang/tools/clang-format/clang-format-bbedit.applescript`; place a copy in
174 point to your local copy of :program:`clang-format`.
177 :program:`clang-format` will format the selection. Note that you can rename the
185 :program:`clang-format` is integrated into `CLion <https://www.jetbrains
187 automatically when there is a ``.clang-format`` file under the project root.
191 :program:`clang-format` can also be enabled without a ``.clang-format`` file.
206 …arketplace <https://marketplace.visualstudio.com/items?itemName=xaver.clang-format>`_. The default…
212 The python script `clang/tools/clang-format/clang-format-diff.py` parses the
214 :program:`clang-format`.
218 usage: clang-format-diff.py [-h] [-i] [-p NUM] [-regex PATTERN] [-style STYLE]
235 git diff -U0 --no-color HEAD^ | clang-format-diff.py -i -p1
241 hg diff -U0 --color=never | clang-format-diff.py -i -p1
247 svn diff --diff-cmd=diff -x -U0 | clang-format-diff.py -i
249 The option `-U0` will create a diff without context lines (the script would format
258 The following table :doc:`ClangFormattedStatus` shows the current status of clang-formatting for th…