Lines Matching +refs:clang +refs:prefix +refs:header
8 When using :program:`clang-format` command line utility or
9 ``clang::format::reformat(...)`` functions from code, one can either use one of
14 Configuring Style with clang-format
17 :program:`clang-format` supports two ways to provide custom style options:
19 use ``-style=file`` and put style configuration in the ``.clang-format`` or
22 When using ``-style=file``, :program:`clang-format` for each input file will
23 try to find the ``.clang-format`` file located in the closest parent directory
27 The ``.clang-format`` file uses YAML format:
44 When :program:`clang-format` formats a file, it auto-detects the language using
47 used to override the file name :program:`clang-format` uses to detect the
73 An easy way to get a valid ``.clang-format`` file containing all configuration
78 clang-format -style=llvm -dump-config > .clang-format
92 delimited range. The code between a comment ``// clang-format off`` or
93 ``/* clang-format off */`` up to a comment ``// clang-format on`` or
94 ``/* clang-format on */`` will not be formatted. The comments themselves
100 // clang-format off
102 // clang-format on
109 When using ``clang::format::reformat(...)`` functions, the format is specified
110 by supplying the `clang::format::FormatStyle
111 <http://clang.llvm.org/doxygen/structclang_1_1format_1_1FormatStyle.html>`_
120 enumeration member (with a prefix, e.g. ``LS_Auto``), and as a value usable in
121 the configuration (without a prefix: ``Auto``).
127 This option is supported only in the :program:`clang-format` configuration
128 (both within ``-style='{...}'`` and the ``.clang-format`` file).
384 clang-format will respect the input's line breaking decisions within
413 (e.g. a type or variable name), clang-format formats as if the ``{}`` were
425 If ``true``, clang-format detects whether function calls and
430 made, clang-format analyzes whether there are other bin-packed cases in
447 In the .clang-format configuration file, this can be configured like:
466 category. The main header for a source file automatically gets category 0,
470 To configure this in the .clang-format file, use:
475 - Regex: '^"(llvm|llvm-c|clang|clang-c)/'
668 Each additional style option adds costs to the clang-format project. Some of
669 these costs affect the clang-format developement itself, as we need to make
675 The goal of the clang-format project is more on the side of supporting a