| 1 |
BasedOnStyle: LLVM |
| 2 |
# If true, clang-format will attempt to re-flow comments |
| 3 |
ReflowComments: false |
| 4 |
# The column limit. |
| 5 |
ColumnLimit: 100 |
| 6 |
# Indent width for line continuations. |
| 7 |
ContinuationIndentWidth: 4 |
| 8 |
# The number of columns to use for indentation. |
| 9 |
IndentWidth: 8 |
| 10 |
# The number of columns used for tab stops. |
| 11 |
TabWidth: 8 |
| 12 |
UseTab: ForIndentation |
| 13 |
|
| 14 |
# Options for aligning backslashes in escaped newlines. |
| 15 |
AlignEscapedNewlines: Left |
| 16 |
# Short Block Style |
| 17 |
AllowShortBlocksOnASingleLine: true |
| 18 |
# If true, short case labels will be contracted to a single line. |
| 19 |
AllowShortCaseLabelsOnASingleLine: true |
| 20 |
# Dependent on the value, int f() { return 0; } can be put on a single line. |
| 21 |
AllowShortFunctionsOnASingleLine: Empty |
| 22 |
# The brace breaking style to use. |
| 23 |
BreakBeforeBraces: Custom |
| 24 |
# Control of individual brace wrapping cases. |
| 25 |
BraceWrapping: |
| 26 |
# Wrap brackets inside of a case |
| 27 |
AfterCaseLabel: true |
| 28 |
# Wrap class definition. |
| 29 |
AfterClass: true |
| 30 |
# Wrap control statements |
| 31 |
AfterControlStatement: true |
| 32 |
# Wrap enum definitions. |
| 33 |
AfterEnum: true |
| 34 |
# Wrap function definitions. |
| 35 |
AfterFunction: true |
| 36 |
# Wrap namespace definitions. |
| 37 |
AfterNamespace: true |
| 38 |
# Wrap struct definitions. |
| 39 |
AfterStruct: true |
| 40 |
# Wrap union definitions. |
| 41 |
AfterUnion: true |
| 42 |
# Wrap extern blocks. |
| 43 |
AfterExternBlock: false |
| 44 |
# Wrap before catch. |
| 45 |
BeforeCatch: true |
| 46 |
# Wrap before else. |
| 47 |
BeforeElse: true |
| 48 |
# Indent the wrapped braces themselves. |
| 49 |
IndentBraces: false |
| 50 |
# If false, empty function body can be put on a single line. |
| 51 |
SplitEmptyFunction: false |
| 52 |
# If false, empty record (e.g. class, struct or union) body can be put on a single line. |
| 53 |
SplitEmptyRecord: false |
| 54 |
# If false, empty namespace body can be put on a single line. |
| 55 |
SplitEmptyNamespace: false |