Solvespace

Форк
0
/
.clang-format 
41 строка · 1.2 Кб
1
---
2
# Things explicitly enumerated in CONTRIBUTING.md
3
IndentWidth: 4
4
UseTab: Never
5
SpaceBeforeParens: Never
6
BreakBeforeBraces: Attach
7
ColumnLimit: 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
12
AccessModifierOffset: -4
13
AlignConsecutiveAssignments: true
14
AlignEscapedNewlines: DontAlign
15
AllowShortBlocksOnASingleLine: false
16
AllowShortCaseLabelsOnASingleLine: true
17
AllowShortLoopsOnASingleLine: false
18
AlwaysBreakTemplateDeclarations: Yes # MultiLine
19
BreakConstructorInitializers: BeforeColon
20
DerivePointerAlignment: true
21
FixNamespaceComments: true
22
IndentPPDirectives: AfterHash
23
MaxEmptyLinesToKeep: 2
24
NamespaceIndentation: Inner
25
SpaceAfterTemplateKeyword: 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?
36
SortIncludes: false
37
SortUsingDeclarations: false
38

39
# Hard to tell what the desired config here was.
40
# AllowShortFunctionsOnASingleLine: Inline
41
AllowShortFunctionsOnASingleLine: None
42

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.