• Home
  • Raw
  • Download

Lines Matching +refs:google +refs:set +refs:c +refs:style

5 :doc:`ClangFormatStyleOptions` describes configurable formatting style options
11 custom style by configuring specific style options.
17 :program:`clang-format` supports two ways to provide custom style options:
18 directly specify style configuration in the ``-style=`` command line option or
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
40 language set, it will set the default style options for all lanugages.
41 Configuration sections for specific language will override options set in the
55 # We'll use defaults from the LLVM style, but with 4 columns indentation.
74 options of a certain predefined style is:
78 clang-format -style=llvm -dump-config > .clang-format
80 When specifying configuration in the ``-style=`` option, the same configuration
85 -style='{key1: value1, key2: value2, ...}'
97 .. code-block:: c++
118 This section lists the supported style options. Value type is specified for
125 The style used for all options not specifically set in the configuration.
128 (both within ``-style='{...}'`` and the ``.clang-format`` file).
133 A style complying with the `LLVM coding standards
136 A style complying with `Google's C++ style guide
137 <http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml>`_
139 A style complying with `Chromium's style guide
140 <http://www.chromium.org/developers/coding-style>`_
142 A style complying with `Mozilla's style guide
145 A style complying with `WebKit's style guide
146 <http://www.webkit.org/coding/coding-style.html>`_
164 .. code-block:: c++
172 .. code-block:: c++
181 .. code-block:: c++
194 .. code-block:: c++
206 .. code-block:: c++
223 .. code-block:: c++
271 The function definition return type breaking style to use. This
289 The function declaration return type breaking style to use.
334 If ``BreakBeforeBraces`` is set to ``BS_Custom``, use this to specify how
372 The brace breaking style to use.
480 .. code-block:: c++
506 (http://llvm.org/docs/CodingStandards.html#include-style). However, you
515 - Regex: '^"(llvm|llvm-c|clang|clang-c)/'
568 Language, this format style is targeted at.
586 (https://developers.google.com/protocol-buffers/).
649 Pointer and reference alignment style.
671 If ``true``, a space may be inserted after C style casts.
691 when determined by other style rules (after unary operators, opening
712 If ``true``, spaces may be inserted into C style casts.
763 Adding additional style options
766 Each additional style option adds costs to the clang-format project. Some of
774 limited set of styles really well as opposed to supporting every single style
776 major projects and thus have established the following bar for adding style
777 options. Each new style option must ..
780 * have a publicly accessible style guide
786 A style similar to the `Linux Kernel style
800 .. code-block:: c++
827 A style similar to the default Visual Studio formatting style:
840 .. code-block:: c++