-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-format
More file actions
34 lines (29 loc) · 975 Bytes
/
.clang-format
File metadata and controls
34 lines (29 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
BasedOnStyle: LLVM # Используем как основу, потом переопределим всё вручную
# Отступы и структура
IndentWidth: 8
UseTab: Never
BreakBeforeBraces: Allman # Всегда новая строка для {
AllowShortIfStatementsOnASingleLine: false
AllowShortFunctionsOnASingleLine: InlineOnly
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: TopLevel
# Выравнивание
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
AlignConsecutiveMacros: true
AlignConsecutiveBitFields: true
AlignTrailingComments: true
ColumnLimit: 80
# Пробелы
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpacesInAngles: false
SpaceAfterCStyleCast: true
# Импорт, includes
SortIncludes: false
IncludeBlocks: Preserve
# Комментарии
IndentWrappedFunctionNames: false
ReflowComments: false