Debian Codegraph @

.clang-format

raw
1 ---
2 Language: Cpp
3 AccessModifierOffset: -4
4 AlignAfterOpenBracket: Align
5 AlignConsecutiveAssignments: true
6 AlignConsecutiveDeclarations: true
7 AlignEscapedNewlines: Left
8 AlignOperands: true
9 AlignTrailingComments: true
10 AllowAllParametersOfDeclarationOnNextLine: false
11 AllowShortBlocksOnASingleLine: Always
12 AllowShortCaseLabelsOnASingleLine: true
13 AllowShortFunctionsOnASingleLine: Inline
14 AllowShortIfStatementsOnASingleLine: false
15 AllowShortLoopsOnASingleLine: false
16 AlwaysBreakAfterDefinitionReturnType: None
17 AlwaysBreakAfterReturnType: None
18 AlwaysBreakBeforeMultilineStrings: true
19 AlwaysBreakTemplateDeclarations: Yes
20 BinPackArguments: false
21 BinPackParameters: false
22 BreakBeforeBinaryOperators: NonAssignment
23 BreakBeforeBraces: Allman
24 BreakBeforeTernaryOperators: true
25 BreakConstructorInitializers: AfterColon
26 BreakAfterJavaFieldAnnotations: false
27 BreakInheritanceList: AfterColon
28 BreakStringLiterals: true
29 ColumnLimit: 100
30 CommentPragmas: '^ IWYU pragma:|NOLINT'
31 ConstructorInitializerAllOnOneLineOrOnePerLine: true
32 ConstructorInitializerIndentWidth: 4
33 ContinuationIndentWidth: 8
34 Cpp11BracedListStyle: false
35 DerivePointerAlignment: false
36 DisableFormat: false
37 ExperimentalAutoDetectBinPacking: false
38 FixNamespaceComments: true
39 ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
40 IncludeBlocks: Regroup
41 IncludeCategories:
42 # Make sure gmxpre.h goes first.
43 - Regex: 'gmxpre.h'
44 Priority: -1
45 # config.h goes immediately after the main header.
46 - Regex: 'config.h'
47 Priority: 1
48 # Group deprecated C compatibility headers.
49 - Regex: '^<[^/]*\.h>'
50 Priority: 2
51 # Group C compatibility headers.
52 - Regex: '^<c(assert|ctype|errno|fenv|float|inttypes|limits|locale|math|setjmp|signal|stdarg|stddef|stdint|stdio|stdlib|string|time|uchar|wchar|wctype)>'
53 Priority: 3
54 # Get remaining C++ headers, as best we can tell.
55 - Regex: '^<[^/]*>'
56 Priority: 4
57 # Get any other headers included from the system.
58 - Regex: '^<.*>'
59 Priority: 5
60 # Group headers by API level.
61 # Non-private gromacs headers.
62 - Regex: 'gromacs/.*'
63 Priority: 20
64 - Regex: 'testutils/.*'
65 Priority: 30
66 - Regex: 'programs/.*'
67 Priority: 40
68 - Regex: 'gmxapi/.*'
69 Priority: 50
70 - Regex: 'nblib/.*'
71 Priority: 60
72 # Try to match external headers by looking for paths not yet matched,
73 # but insert before recognized paths.
74 - Regex: '.*/.*'
75 Priority: 10
76 # Private headers. Unfortunately, also matches headers without subdirectories or angle-brackets.
77 - Regex: '.*'
78 Priority: 100
79 IncludeIsMainRegex: '(([-_](test|tests|unittest))?([-_][0-9]+)*)$'
80 IncludeIsMainSourceRegex: '(\.cu)$'
81 IndentPPDirectives: AfterHash
82 IndentCaseLabels: true
83 IndentWidth: 4
84 IndentWrappedFunctionNames: false
85 JavaScriptQuotes: Leave
86 JavaScriptWrapImports: true
87 KeepEmptyLinesAtTheStartOfBlocks: true
88 MacroBlockBegin: ''
89 MacroBlockEnd: ''
90 MaxEmptyLinesToKeep: 2
91 NamespaceIndentation: None
92 ObjCBlockIndentWidth: 2
93 ObjCSpaceAfterProperty: false
94 ObjCSpaceBeforeProtocolList: false
95 PenaltyBreakBeforeFirstCallParameter: 1
96 PenaltyBreakComment: 300
97 PenaltyBreakFirstLessLess: 120
98 PenaltyBreakString: 1000
99 PenaltyExcessCharacter: 2
100 PenaltyReturnTypeOnItsOwnLine: 100
101 PointerAlignment: Left
102 ReflowComments: true
103 SortIncludes: CaseSensitive
104 SortUsingDeclarations: true
105 SpaceAfterCStyleCast: false
106 SpaceBeforeAssignmentOperators: true
107 SpaceBeforeParens: ControlStatements
108 SpaceInEmptyParentheses: false
109 SpacesBeforeTrailingComments: 1
110 SpacesInAngles: false
111 SpaceAfterTemplateKeyword: false
112 SpacesInContainerLiterals: false
113 SpacesInCStyleCastParentheses: false
114 SpacesInParentheses: false
115 SpacesInSquareBrackets: false
116 Standard: c++20
117 TabWidth: 8
118 UseTab: Never
119 ...