Debian Codegraph @

.clang-format

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