Solvespace
/
.clang-format
41 строка · 1.2 Кб
1---
2# Things explicitly enumerated in CONTRIBUTING.md
3IndentWidth: 4
4UseTab: Never
5SpaceBeforeParens: Never
6BreakBeforeBraces: Attach
7ColumnLimit: 100
8# Docs say 100, but some places look more like 80.
9#ColumnLimit: 80
10
11# Based on minimizing diff when applying clang-format
12AccessModifierOffset: -4
13AlignConsecutiveAssignments: true
14AlignEscapedNewlines: DontAlign
15AllowShortBlocksOnASingleLine: false
16AllowShortCaseLabelsOnASingleLine: true
17AllowShortLoopsOnASingleLine: false
18AlwaysBreakTemplateDeclarations: Yes # MultiLine
19BreakConstructorInitializers: BeforeColon
20DerivePointerAlignment: true
21FixNamespaceComments: true
22IndentPPDirectives: AfterHash
23MaxEmptyLinesToKeep: 2
24NamespaceIndentation: Inner
25SpaceAfterTemplateKeyword: false
26
27# No way to remove all space around operators as seen in much of the code I looked at.
28#SpaceBeforeAssignmentOperators: false
29
30# Only seen some of the time (mostly just variables, not functions)
31# but clang-format only has a true/false
32#AlignConsecutiveDeclarations: true
33
34
35# Would be nice to turn on eventually, maybe?
36SortIncludes: false
37SortUsingDeclarations: false
38
39# Hard to tell what the desired config here was.
40# AllowShortFunctionsOnASingleLine: Inline
41AllowShortFunctionsOnASingleLine: None
42