2 # If true, clang-format will attempt to re-flow comments
6 # Indent width for line continuations.
7 ContinuationIndentWidth: 4
8 # The number of columns to use for indentation.
10 # The number of columns used for tab stops.
12 UseTab: ForIndentation
14 # Options for aligning backslashes in escaped newlines.
15 AlignEscapedNewlines: Left
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.
26 # Wrap class definition.
28 # Wrap control statements
29 AfterControlStatement: true
30 # Wrap enum definitions.
32 # Wrap function definitions.
34 # Wrap namespace definitions.
36 # Wrap struct definitions.
38 # Wrap union definitions.
41 AfterExternBlock: false
46 # Indent the wrapped braces themselves.
48 # If false, empty function body can be put on a single line.
49 SplitEmptyFunction: false
50 # If false, empty record (e.g. class, struct or union) body can be put on a single line.
51 SplitEmptyRecord: false
52 # If false, empty namespace body can be put on a single line.
53 SplitEmptyNamespace: false