Skip to content
Snippets Groups Projects
Commit ed09c5e2 authored by Alexander Kornienko's avatar Alexander Kornienko
Browse files

Clean up clang-format options documentation. NFC

Use uniform style for inline code blocks, specify language for YAML code blocks,
various formatting fixes etc.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@261645 91177308-0d34-0410-b5e6-96231b3b80d8
parent 20e4e00a
No related branches found
No related tags found
No related merge requests found
...@@ -148,7 +148,7 @@ the configuration (without a prefix: ``Auto``). ...@@ -148,7 +148,7 @@ the configuration (without a prefix: ``Auto``).
.. START_FORMAT_STYLE_OPTIONS .. START_FORMAT_STYLE_OPTIONS
**AccessModifierOffset** (``int``) **AccessModifierOffset** (``int``)
The extra indent or outdent of access modifiers, e.g. ``public:``. The extra indent or outdent of access modifiers, e.g. ``public``:.
**AlignAfterOpenBracket** (``BracketAlignmentStyle``) **AlignAfterOpenBracket** (``BracketAlignmentStyle``)
If ``true``, horizontally aligns arguments after an open bracket. If ``true``, horizontally aligns arguments after an open bracket.
...@@ -165,6 +165,7 @@ the configuration (without a prefix: ``Auto``). ...@@ -165,6 +165,7 @@ the configuration (without a prefix: ``Auto``).
someLongFunction(argument1, someLongFunction(argument1,
argument2); argument2);
* ``BAS_DontAlign`` (in configuration: ``DontAlign``) * ``BAS_DontAlign`` (in configuration: ``DontAlign``)
Don't align, instead use ``ContinuationIndentWidth``, e.g.: Don't align, instead use ``ContinuationIndentWidth``, e.g.:
...@@ -172,6 +173,7 @@ the configuration (without a prefix: ``Auto``). ...@@ -172,6 +173,7 @@ the configuration (without a prefix: ``Auto``).
someLongFunction(argument1, someLongFunction(argument1,
argument2); argument2);
* ``BAS_AlwaysBreak`` (in configuration: ``AlwaysBreak``) * ``BAS_AlwaysBreak`` (in configuration: ``AlwaysBreak``)
Always break after an open bracket, if the parameters don't fit Always break after an open bracket, if the parameters don't fit
on a single line, e.g.: on a single line, e.g.:
...@@ -182,6 +184,7 @@ the configuration (without a prefix: ``Auto``). ...@@ -182,6 +184,7 @@ the configuration (without a prefix: ``Auto``).
argument1, argument2); argument1, argument2);
**AlignConsecutiveAssignments** (``bool``) **AlignConsecutiveAssignments** (``bool``)
If ``true``, aligns consecutive assignments. If ``true``, aligns consecutive assignments.
...@@ -238,28 +241,31 @@ the configuration (without a prefix: ``Auto``). ...@@ -238,28 +241,31 @@ the configuration (without a prefix: ``Auto``).
If ``true``, short case labels will be contracted to a single line. If ``true``, short case labels will be contracted to a single line.
**AllowShortFunctionsOnASingleLine** (``ShortFunctionStyle``) **AllowShortFunctionsOnASingleLine** (``ShortFunctionStyle``)
Dependent on the value, ``int f() { return 0; }`` can be put Dependent on the value, ``int f() { return 0; }`` can be put on a
on a single line. single line.
Possible values: Possible values:
* ``SFS_None`` (in configuration: ``None``) * ``SFS_None`` (in configuration: ``None``)
Never merge functions into a single line. Never merge functions into a single line.
* ``SFS_Empty`` (in configuration: ``Empty``) * ``SFS_Empty`` (in configuration: ``Empty``)
Only merge empty functions. Only merge empty functions.
* ``SFS_Inline`` (in configuration: ``Inline``) * ``SFS_Inline`` (in configuration: ``Inline``)
Only merge functions defined inside a class. Implies "empty". Only merge functions defined inside a class. Implies "empty".
* ``SFS_All`` (in configuration: ``All``) * ``SFS_All`` (in configuration: ``All``)
Merge all functions fitting on a single line. Merge all functions fitting on a single line.
**AllowShortIfStatementsOnASingleLine** (``bool``) **AllowShortIfStatementsOnASingleLine** (``bool``)
If ``true``, ``if (a) return;`` can be put on a single If ``true``, ``if (a) return;`` can be put on a single line.
line.
**AllowShortLoopsOnASingleLine** (``bool``) **AllowShortLoopsOnASingleLine** (``bool``)
If ``true``, ``while (true) continue;`` can be put on a If ``true``, ``while (true) continue;`` can be put on a single
single line. line.
**AlwaysBreakAfterDefinitionReturnType** (``DefinitionReturnTypeBreakingStyle``) **AlwaysBreakAfterDefinitionReturnType** (``DefinitionReturnTypeBreakingStyle``)
The function definition return type breaking style to use. This The function definition return type breaking style to use. This
...@@ -270,12 +276,15 @@ the configuration (without a prefix: ``Auto``). ...@@ -270,12 +276,15 @@ the configuration (without a prefix: ``Auto``).
* ``DRTBS_None`` (in configuration: ``None``) * ``DRTBS_None`` (in configuration: ``None``)
Break after return type automatically. Break after return type automatically.
``PenaltyReturnTypeOnItsOwnLine`` is taken into account. ``PenaltyReturnTypeOnItsOwnLine`` is taken into account.
* ``DRTBS_All`` (in configuration: ``All``) * ``DRTBS_All`` (in configuration: ``All``)
Always break after the return type. Always break after the return type.
* ``DRTBS_TopLevel`` (in configuration: ``TopLevel``) * ``DRTBS_TopLevel`` (in configuration: ``TopLevel``)
Always break after the return types of top-level functions. Always break after the return types of top-level functions.
**AlwaysBreakAfterReturnType** (``ReturnTypeBreakingStyle``) **AlwaysBreakAfterReturnType** (``ReturnTypeBreakingStyle``)
The function declaration return type breaking style to use. The function declaration return type breaking style to use.
...@@ -284,16 +293,21 @@ the configuration (without a prefix: ``Auto``). ...@@ -284,16 +293,21 @@ the configuration (without a prefix: ``Auto``).
* ``RTBS_None`` (in configuration: ``None``) * ``RTBS_None`` (in configuration: ``None``)
Break after return type automatically. Break after return type automatically.
``PenaltyReturnTypeOnItsOwnLine`` is taken into account. ``PenaltyReturnTypeOnItsOwnLine`` is taken into account.
* ``RTBS_All`` (in configuration: ``All``) * ``RTBS_All`` (in configuration: ``All``)
Always break after the return type. Always break after the return type.
* ``RTBS_TopLevel`` (in configuration: ``TopLevel``) * ``RTBS_TopLevel`` (in configuration: ``TopLevel``)
Always break after the return types of top-level functions. Always break after the return types of top-level functions.
* ``RTBS_AllDefinitions`` (in configuration: ``AllDefinitions``) * ``RTBS_AllDefinitions`` (in configuration: ``AllDefinitions``)
Always break after the return type of function definitions. Always break after the return type of function definitions.
* ``RTBS_TopLevelDefinitions`` (in configuration: ``TopLevelDefinitions``) * ``RTBS_TopLevelDefinitions`` (in configuration: ``TopLevelDefinitions``)
Always break after the return type of top-level definitions. Always break after the return type of top-level definitions.
**AlwaysBreakBeforeMultilineStrings** (``bool``) **AlwaysBreakBeforeMultilineStrings** (``bool``)
If ``true``, always break before multiline string literals. If ``true``, always break before multiline string literals.
...@@ -303,8 +317,8 @@ the configuration (without a prefix: ``Auto``). ...@@ -303,8 +317,8 @@ the configuration (without a prefix: ``Auto``).
``ContinuationIndentWidth`` spaces from the start of the line. ``ContinuationIndentWidth`` spaces from the start of the line.
**AlwaysBreakTemplateDeclarations** (``bool``) **AlwaysBreakTemplateDeclarations** (``bool``)
If ``true``, always break after the ``template<...>`` of a If ``true``, always break after the ``template<...>`` of a template
template declaration. declaration.
**BinPackArguments** (``bool``) **BinPackArguments** (``bool``)
If ``false``, a function call's arguments will either be all on the If ``false``, a function call's arguments will either be all on the
...@@ -317,17 +331,17 @@ the configuration (without a prefix: ``Auto``). ...@@ -317,17 +331,17 @@ the configuration (without a prefix: ``Auto``).
**BraceWrapping** (``BraceWrappingFlags``) **BraceWrapping** (``BraceWrappingFlags``)
Control of individual brace wrapping cases. Control of individual brace wrapping cases.
If ``BreakBeforeBraces`` is set to ``custom``, use this to specify how each If ``BreakBeforeBraces`` is set to ``BS_Custom``, use this to specify how
individual brace case should be handled. Otherwise, this is ignored. each individual brace case should be handled. Otherwise, this is ignored.
Nested configuration flags: Nested configuration flags:
* ``bool AfterClass`` Wrap class definitions. * ``bool AfterClass`` Wrap class definitions.
* ``bool AfterControlStatement`` Wrap control statements (if/for/while/switch/..). * ``bool AfterControlStatement`` Wrap control statements (``if``/``for``/``while``/``switch``/..).
* ``bool AfterEnum`` Wrap enum definitions. * ``bool AfterEnum`` Wrap enum definitions.
* ``bool AfterFunction`` Wrap function definitions. * ``bool AfterFunction`` Wrap function definitions.
* ``bool AfterNamespace`` Wrap namespace definitions. * ``bool AfterNamespace`` Wrap namespace definitions.
* ``bool AfterObjCDeclaration`` Wrap ObjC definitions (@autoreleasepool, interfaces, ..). * ``bool AfterObjCDeclaration`` Wrap ObjC definitions (``@autoreleasepool``, interfaces, ..).
* ``bool AfterStruct`` Wrap struct definitions. * ``bool AfterStruct`` Wrap struct definitions.
* ``bool AfterUnion`` Wrap union definitions. * ``bool AfterUnion`` Wrap union definitions.
* ``bool BeforeCatch`` Wrap before ``catch``. * ``bool BeforeCatch`` Wrap before ``catch``.
...@@ -345,12 +359,15 @@ the configuration (without a prefix: ``Auto``). ...@@ -345,12 +359,15 @@ the configuration (without a prefix: ``Auto``).
* ``BOS_None`` (in configuration: ``None``) * ``BOS_None`` (in configuration: ``None``)
Break after operators. Break after operators.
* ``BOS_NonAssignment`` (in configuration: ``NonAssignment``) * ``BOS_NonAssignment`` (in configuration: ``NonAssignment``)
Break before operators that aren't assignments. Break before operators that aren't assignments.
* ``BOS_All`` (in configuration: ``All``) * ``BOS_All`` (in configuration: ``All``)
Break before operators. Break before operators.
**BreakBeforeBraces** (``BraceBreakingStyle``) **BreakBeforeBraces** (``BraceBreakingStyle``)
The brace breaking style to use. The brace breaking style to use.
...@@ -358,24 +375,33 @@ the configuration (without a prefix: ``Auto``). ...@@ -358,24 +375,33 @@ the configuration (without a prefix: ``Auto``).
* ``BS_Attach`` (in configuration: ``Attach``) * ``BS_Attach`` (in configuration: ``Attach``)
Always attach braces to surrounding context. Always attach braces to surrounding context.
* ``BS_Linux`` (in configuration: ``Linux``) * ``BS_Linux`` (in configuration: ``Linux``)
Like ``Attach``, but break before braces on function, namespace and Like ``Attach``, but break before braces on function, namespace and
class definitions. class definitions.
* ``BS_Mozilla`` (in configuration: ``Mozilla``) * ``BS_Mozilla`` (in configuration: ``Mozilla``)
Like ``Attach``, but break before braces on enum, function, and record Like ``Attach``, but break before braces on enum, function, and record
definitions. definitions.
* ``BS_Stroustrup`` (in configuration: ``Stroustrup``) * ``BS_Stroustrup`` (in configuration: ``Stroustrup``)
Like ``Attach``, but break before function definitions, 'catch', and 'else'. Like ``Attach``, but break before function definitions, ``catch``, and
``else``.
* ``BS_Allman`` (in configuration: ``Allman``) * ``BS_Allman`` (in configuration: ``Allman``)
Always break before braces. Always break before braces.
* ``BS_GNU`` (in configuration: ``GNU``) * ``BS_GNU`` (in configuration: ``GNU``)
Always break before braces and add an extra level of indentation to Always break before braces and add an extra level of indentation to
braces of control statements, not to those of class, function braces of control statements, not to those of class, function
or other definitions. or other definitions.
* ``BS_WebKit`` (in configuration: ``WebKit``) * ``BS_WebKit`` (in configuration: ``WebKit``)
Like ``Attach``, but break before functions. Like ``Attach``, but break before functions.
* ``BS_Custom`` (in configuration: ``Custom``) * ``BS_Custom`` (in configuration: ``Custom``)
Configure each individual brace in ``BraceWrapping``. Configure each individual brace in `BraceWrapping`.
**BreakBeforeTernaryOperators** (``bool``) **BreakBeforeTernaryOperators** (``bool``)
...@@ -427,7 +453,8 @@ the configuration (without a prefix: ``Auto``). ...@@ -427,7 +453,8 @@ the configuration (without a prefix: ``Auto``).
**DerivePointerAlignment** (``bool``) **DerivePointerAlignment** (``bool``)
If ``true``, analyze the formatted file for the most common If ``true``, analyze the formatted file for the most common
alignment of & and \*. ``PointerAlignment`` is then used only as fallback. alignment of ``&`` and ``\*``. ``PointerAlignment`` is then used only as
fallback.
**DisableFormat** (``bool``) **DisableFormat** (``bool``)
Disables formatting completely. Disables formatting completely.
...@@ -457,32 +484,32 @@ the configuration (without a prefix: ``Auto``). ...@@ -457,32 +484,32 @@ the configuration (without a prefix: ``Auto``).
In the .clang-format configuration file, this can be configured like: In the .clang-format configuration file, this can be configured like:
.. code-block:: c++ .. code-block:: yaml
ForEachMacros: ['RANGES_FOR', 'FOREACH'] ForEachMacros: ['RANGES_FOR', 'FOREACH']
For example: BOOST_FOREACH. For example: BOOST_FOREACH.
**IncludeCategories** (``std::vector<IncludeCategory>``) **IncludeCategories** (``std::vector<IncludeCategory>``)
Regular expressions denoting the different #include categories used Regular expressions denoting the different ``#include`` categories
for ordering #includes. used for ordering ``#includes``.
These regular expressions are matched against the filename of an include These regular expressions are matched against the filename of an include
(including the <> or "") in order. The value belonging to the first (including the <> or "") in order. The value belonging to the first
matching regular expression is assigned and #includes are sorted first matching regular expression is assigned and ``#includes`` are sorted first
according to increasing category number and then alphabetically within according to increasing category number and then alphabetically within
each category. each category.
If none of the regular expressions match, INT_MAX is assigned as If none of the regular expressions match, INT_MAX is assigned as
category. The main header for a source file automatically gets category 0. category. The main header for a source file automatically gets category 0.
so that it is generally kept at the beginning of the #includes so that it is generally kept at the beginning of the ``#includes``
(http://llvm.org/docs/CodingStandards.html#include-style). However, you (http://llvm.org/docs/CodingStandards.html#include-style). However, you
can also assign negative priorities if you have certain headers that can also assign negative priorities if you have certain headers that
always need to be first. always need to be first.
To configure this in the .clang-format file, use: To configure this in the .clang-format file, use:
.. code-block:: c++ .. code-block:: yaml
IncludeCategories: IncludeCategories:
- Regex: '^"(llvm|llvm-c|clang|clang-c)/' - Regex: '^"(llvm|llvm-c|clang|clang-c)/'
...@@ -515,19 +542,25 @@ the configuration (without a prefix: ``Auto``). ...@@ -515,19 +542,25 @@ the configuration (without a prefix: ``Auto``).
* ``LK_None`` (in configuration: ``None``) * ``LK_None`` (in configuration: ``None``)
Do not use. Do not use.
* ``LK_Cpp`` (in configuration: ``Cpp``) * ``LK_Cpp`` (in configuration: ``Cpp``)
Should be used for C, C++, ObjectiveC, ObjectiveC++. Should be used for C, C++, ObjectiveC, ObjectiveC++.
* ``LK_Java`` (in configuration: ``Java``) * ``LK_Java`` (in configuration: ``Java``)
Should be used for Java. Should be used for Java.
* ``LK_JavaScript`` (in configuration: ``JavaScript``) * ``LK_JavaScript`` (in configuration: ``JavaScript``)
Should be used for JavaScript. Should be used for JavaScript.
* ``LK_Proto`` (in configuration: ``Proto``) * ``LK_Proto`` (in configuration: ``Proto``)
Should be used for Protocol Buffers Should be used for Protocol Buffers
(https://developers.google.com/protocol-buffers/). (https://developers.google.com/protocol-buffers/).
* ``LK_TableGen`` (in configuration: ``TableGen``) * ``LK_TableGen`` (in configuration: ``TableGen``)
Should be used for TableGen code. Should be used for TableGen code.
**MacroBlockBegin** (``std::string``) **MacroBlockBegin** (``std::string``)
A regular expression matching macros that start a block. A regular expression matching macros that start a block.
...@@ -544,25 +577,28 @@ the configuration (without a prefix: ``Auto``). ...@@ -544,25 +577,28 @@ the configuration (without a prefix: ``Auto``).
* ``NI_None`` (in configuration: ``None``) * ``NI_None`` (in configuration: ``None``)
Don't indent in namespaces. Don't indent in namespaces.
* ``NI_Inner`` (in configuration: ``Inner``) * ``NI_Inner`` (in configuration: ``Inner``)
Indent only in inner namespaces (nested in other namespaces). Indent only in inner namespaces (nested in other namespaces).
* ``NI_All`` (in configuration: ``All``) * ``NI_All`` (in configuration: ``All``)
Indent in all namespaces. Indent in all namespaces.
**ObjCBlockIndentWidth** (``unsigned``) **ObjCBlockIndentWidth** (``unsigned``)
The number of characters to use for indentation of ObjC blocks. The number of characters to use for indentation of ObjC blocks.
**ObjCSpaceAfterProperty** (``bool``) **ObjCSpaceAfterProperty** (``bool``)
Add a space after ``@property`` in Objective-C, i.e. use Add a space after ``@property`` in Objective-C, i.e. use
``\@property (readonly)`` instead of ``\@property(readonly)``. ``@property (readonly)`` instead of ``@property(readonly)``.
**ObjCSpaceBeforeProtocolList** (``bool``) **ObjCSpaceBeforeProtocolList** (``bool``)
Add a space in front of an Objective-C protocol list, i.e. use Add a space in front of an Objective-C protocol list, i.e. use
``Foo <Protocol>`` instead of ``Foo<Protocol>``. ``Foo <Protocol>`` instead of ``Foo<Protocol>``.
**PenaltyBreakBeforeFirstCallParameter** (``unsigned``) **PenaltyBreakBeforeFirstCallParameter** (``unsigned``)
The penalty for breaking a function call after "call(". The penalty for breaking a function call after ``call(``.
**PenaltyBreakComment** (``unsigned``) **PenaltyBreakComment** (``unsigned``)
The penalty for each line break introduced inside a comment. The penalty for each line break introduced inside a comment.
...@@ -587,17 +623,20 @@ the configuration (without a prefix: ``Auto``). ...@@ -587,17 +623,20 @@ the configuration (without a prefix: ``Auto``).
* ``PAS_Left`` (in configuration: ``Left``) * ``PAS_Left`` (in configuration: ``Left``)
Align pointer to the left. Align pointer to the left.
* ``PAS_Right`` (in configuration: ``Right``) * ``PAS_Right`` (in configuration: ``Right``)
Align pointer to the right. Align pointer to the right.
* ``PAS_Middle`` (in configuration: ``Middle``) * ``PAS_Middle`` (in configuration: ``Middle``)
Align pointer in the middle. Align pointer in the middle.
**ReflowComments** (``bool``) **ReflowComments** (``bool``)
If true, clang-format will attempt to re-flow comments. If ``true``, clang-format will attempt to re-flow comments.
**SortIncludes** (``bool``) **SortIncludes** (``bool``)
If true, clang-format will sort #includes. If ``true``, clang-format will sort ``#includes``.
**SpaceAfterCStyleCast** (``bool``) **SpaceAfterCStyleCast** (``bool``)
If ``true``, a space may be inserted after C style casts. If ``true``, a space may be inserted after C style casts.
...@@ -612,9 +651,11 @@ the configuration (without a prefix: ``Auto``). ...@@ -612,9 +651,11 @@ the configuration (without a prefix: ``Auto``).
* ``SBPO_Never`` (in configuration: ``Never``) * ``SBPO_Never`` (in configuration: ``Never``)
Never put a space before opening parentheses. Never put a space before opening parentheses.
* ``SBPO_ControlStatements`` (in configuration: ``ControlStatements``) * ``SBPO_ControlStatements`` (in configuration: ``ControlStatements``)
Put a space before opening parentheses only after control statement Put a space before opening parentheses only after control statement
keywords (``for/if/while...``). keywords (``for/if/while...``).
* ``SBPO_Always`` (in configuration: ``Always``) * ``SBPO_Always`` (in configuration: ``Always``)
Always put a space before opening parentheses, except when it's Always put a space before opening parentheses, except when it's
prohibited by the syntax rules (in function-like macro definitions) or prohibited by the syntax rules (in function-like macro definitions) or
...@@ -622,19 +663,21 @@ the configuration (without a prefix: ``Auto``). ...@@ -622,19 +663,21 @@ the configuration (without a prefix: ``Auto``).
parentheses, etc.) parentheses, etc.)
**SpaceInEmptyParentheses** (``bool``) **SpaceInEmptyParentheses** (``bool``)
If ``true``, spaces may be inserted into '()'. If ``true``, spaces may be inserted into ``()``.
**SpacesBeforeTrailingComments** (``unsigned``) **SpacesBeforeTrailingComments** (``unsigned``)
The number of spaces before trailing line comments The number of spaces before trailing line comments
(``//`` - comments). (``//`` - comments).
This does not affect trailing block comments (``/**/`` - comments) as those This does not affect trailing block comments (``/**/`` - comments) as
commonly have different usage patterns and a number of special cases. those commonly have different usage patterns and a number of special
cases.
**SpacesInAngles** (``bool``) **SpacesInAngles** (``bool``)
If ``true``, spaces will be inserted after '<' and before '>' in If ``true``, spaces will be inserted after ``<`` and before ``>``
template argument lists in template argument lists.
**SpacesInCStyleCastParentheses** (``bool``) **SpacesInCStyleCastParentheses** (``bool``)
If ``true``, spaces may be inserted into C style casts. If ``true``, spaces may be inserted into C style casts.
...@@ -644,26 +687,28 @@ the configuration (without a prefix: ``Auto``). ...@@ -644,26 +687,28 @@ the configuration (without a prefix: ``Auto``).
ObjC and Javascript array and dict literals). ObjC and Javascript array and dict literals).
**SpacesInParentheses** (``bool``) **SpacesInParentheses** (``bool``)
If ``true``, spaces will be inserted after '(' and before ')'. If ``true``, spaces will be inserted after ``(`` and before ``)``.
**SpacesInSquareBrackets** (``bool``) **SpacesInSquareBrackets** (``bool``)
If ``true``, spaces will be inserted after '[' and before ']'. If ``true``, spaces will be inserted after ``[`` and before ``]``.
**Standard** (``LanguageStandard``) **Standard** (``LanguageStandard``)
Format compatible with this standard, e.g. use Format compatible with this standard, e.g. use ``A<A<int> >``
``A<A<int> >`` instead of ``A<A<int>>`` for LS_Cpp03. instead of ``A<A<int>>`` for ``LS_Cpp03``.
Possible values: Possible values:
* ``LS_Cpp03`` (in configuration: ``Cpp03``) * ``LS_Cpp03`` (in configuration: ``Cpp03``)
Use C++03-compatible syntax. Use C++03-compatible syntax.
* ``LS_Cpp11`` (in configuration: ``Cpp11``) * ``LS_Cpp11`` (in configuration: ``Cpp11``)
Use features of C++11 (e.g. ``A<A<int>>`` instead of Use features of C++11 (e.g. ``A<A<int>>`` instead of ``A<A<int> >``).
``A<A<int> >``).
* ``LS_Auto`` (in configuration: ``Auto``) * ``LS_Auto`` (in configuration: ``Auto``)
Automatic detection based on the input. Automatic detection based on the input.
**TabWidth** (``unsigned``) **TabWidth** (``unsigned``)
The number of columns used for tab stops. The number of columns used for tab stops.
...@@ -674,13 +719,16 @@ the configuration (without a prefix: ``Auto``). ...@@ -674,13 +719,16 @@ the configuration (without a prefix: ``Auto``).
* ``UT_Never`` (in configuration: ``Never``) * ``UT_Never`` (in configuration: ``Never``)
Never use tab. Never use tab.
* ``UT_ForIndentation`` (in configuration: ``ForIndentation``) * ``UT_ForIndentation`` (in configuration: ``ForIndentation``)
Use tabs only for indentation. Use tabs only for indentation.
* ``UT_Always`` (in configuration: ``Always``) * ``UT_Always`` (in configuration: ``Always``)
Use tabs whenever we need to fill whitespace that spans at least from Use tabs whenever we need to fill whitespace that spans at least from
one tab stop to the next one. one tab stop to the next one.
.. END_FORMAT_STYLE_OPTIONS .. END_FORMAT_STYLE_OPTIONS
Adding additional style options Adding additional style options
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment