NR: Add index entries for `<<`, `\\`, and `>>`
[lilypond/mirror.git] / .clang-format
blob329120d0d044dc094a49081f576cb277b53330e9
1 ---
2 Language:        Cpp
4 # Put a function on a single line if possible, but only in a class (typically
5 # for accessors and mutators).
6 AllowShortFunctionsOnASingleLine: InlineOnly
8 # Newline after the return type of a function, but only for definitions (not
9 # declarations), and not for member function definitions.
10 AlwaysBreakAfterReturnType: TopLevelDefinitions
12 # Newline after `template` line.
13 AlwaysBreakTemplateDeclarations: Yes
15 # Break before operators, not after (including assignment operator).
16 BreakBeforeBinaryOperators: All
18 BreakBeforeBraces: GNU
20 # Indentation width in initializers.
21 ConstructorInitializerIndentWidth: 2
23 # Indentation width in expression continued on next line.
24 ContinuationIndentWidth: 2
26 # No spaces inside braced list.
27 Cpp11BracedListStyle: true
29 # Always put each constructor initializer on its own line.
30 PackConstructorInitializers: Never
32 # Never rewrap comments.  Some of them contain ASCII art.
33 ReflowComments: false
35 # Never sort includes.  The order sometimes matters.
36 SortIncludes: Never
38 # Space after `(void)` in `(void) ...;`.  (We don't use C-style casts for
39 # anything but void.)
40 SpaceAfterCStyleCast: true
42 # Space in C++11 braced-list initialization:
43 # Foo foo {bar};
44 #        ^
45 SpaceBeforeCpp11BracedList: true
47 SpaceBeforeParens: Always