-
-
Notifications
You must be signed in to change notification settings - Fork 326
/
.clang-format
23 lines (23 loc) · 754 Bytes
/
.clang-format
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
# Glib has formatting at https://wiki.apertis.org/Guidelines/Coding_conventions#Code_formatting
# https://gitlab.gnome.org/GNOME/glib/-/blob/main/.clang-format
# But we do not follow it fully
BasedOnStyle: GNU
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
AllowShortLoopsOnASingleLine: true
BinPackParameters: false
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Linux
BreakBeforeTernaryOperators: false
ColumnLimit: 0
ContinuationIndentWidth: 8
Cpp11BracedListStyle: false
FixNamespaceComments: false
IndentCaseLabels: true
IndentGotoLabels: false
IndentWidth: 8
SeparateDefinitionBlocks: Always
SortIncludes: Never
SpaceAfterCStyleCast: true
SpaceBeforeParens: Always
UseTab: Always