Debian Codegraph @

.clang-format

raw
1 BasedOnStyle: WebKit
2 AccessModifierOffset: -8
3 AlignAfterOpenBracket: AlwaysBreak
4 AlignConsecutiveAssignments: true
5 AlignConsecutiveDeclarations: true
6 AlignTrailingComments: true
7 #wait till clang supports it
8 # AllowAllArgumentsOnNextLine: true
9 # AllowShortBlocksOnASingleLine: Always
10 AllowShortIfStatementsOnASingleLine: Always
11 AllowShortCaseLabelsOnASingleLine: true
12 AllowAllParametersOfDeclarationOnNextLine: true
13 BinPackArguments: false
14 BinPackParameters: false
15 # BreakBeforeBraces: Stroustrup
16 # not working on xenial & stretch
17 # BreakConstructorInitializers: BeforeComma
18 ColumnLimit: 160
19 ConstructorInitializerIndentWidth: 8
20 ContinuationIndentWidth: 8
21 # not working on xenial & stretch
22 # IncludeBlocks: Merge
23 # make sure that yade includes are in this order: lib, core, pkg, gui.
24 # Then Eigen, Python. And others at the end. Urecognized go first.
25 # wrap_python.hpp must always be the first one, see https://www.boost.org/doc/libs/1_71_0/libs/python/doc/html/building/include_issues.html
26 IncludeCategories:
27 - Regex: '^(<|")boost/python/detail/wrap_python.hpp(>|")'
28 Priority: -10
29 - Regex: '^<(Eigen|Python)'
30 Priority: 5
31 - Regex: '^(<|")gui/'
32 Priority: 4
33 - Regex: '^(<|")(core|pkg)/'
34 Priority: 3
35 - Regex: '^(<|")lib/'
36 Priority: 2
37 - Regex: '^<.*>'
38 Priority: 6
39 - Regex: '.*'
40 Priority: 1
41 IndentWidth: 8
42 IndentCaseLabels: true
43 # IndentPPDirectives: BeforeHash
44 # not working on xenial & stretch
45 # UseTab: ForContinuationAndIndentation
46 UseTab: ForIndentation
47 KeepEmptyLinesAtTheStartOfBlocks: false
48 MacroBlockBegin: "glBegin|glNewList"
49 MacroBlockEnd: "glEnd|glEndList"
50 MaxEmptyLinesToKeep: 2
51 # not working on xenial & stretch
52 # SortUsingDeclarations: true
53 # wait till clang supports it: https://reviews.llvm.org/D33029
54 # DanglingParenthesis: true
55 Cpp11BracedListStyle: false
56 ReflowComments: false
57 Language: Cpp