Debian Codegraph @

.clang-format

raw
1 ---
2 #
3 # KIM-API: An API for interatomic models
4 # Copyright (c) 2013--2021, Regents of the University of Minnesota.
5 # All rights reserved.
6 #
7 # Contributors:
8 # Ryan S. Elliott
9 #
10 # SPDX-License-Identifier: LGPL-2.1-or-later
11 #
12 # This library is free software; you can redistribute it and/or
13 # modify it under the terms of the GNU Lesser General Public
14 # License as published by the Free Software Foundation; either
15 # version 2.1 of the License, or (at your option) any later version.
16 #
17 # This library is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 # Lesser General Public License for more details.
21 #
22 # You should have received a copy of the GNU Lesser General Public License
23 # along with this library; if not, write to the Free Software Foundation,
24 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 #
26
27 #
28 # Release: This file is part of the kim-api.git repository.
29 #
30
31 Language: Cpp
32 # BasedOnStyle: LLVM
33 AccessModifierOffset: -1
34 AlignAfterOpenBracket: Align
35 AlignConsecutiveAssignments: false
36 AlignConsecutiveDeclarations: false
37 AlignEscapedNewlines: Left
38 AlignOperands: true
39 AlignTrailingComments: false
40 AllowAllParametersOfDeclarationOnNextLine: true
41 AllowShortBlocksOnASingleLine: true
42 AllowShortCaseLabelsOnASingleLine: true
43 AllowShortFunctionsOnASingleLine: All
44 AllowShortIfStatementsOnASingleLine: true
45 AllowShortLoopsOnASingleLine: true
46 #AlwaysBreakAfterDefinitionReturnType: None # deprecated
47 AlwaysBreakAfterReturnType: None
48 AlwaysBreakBeforeMultilineStrings: false
49 AlwaysBreakTemplateDeclarations: Yes
50 BinPackArguments: false
51 BinPackParameters: false
52 BraceWrapping:
53 AfterClass: true
54 AfterControlStatement: true
55 AfterEnum: false
56 AfterFunction: true
57 AfterNamespace: true
58 AfterObjCDeclaration: false
59 AfterStruct: true
60 AfterUnion: true
61 AfterExternBlock: false
62 BeforeCatch: true
63 BeforeElse: true
64 IndentBraces: false
65 SplitEmptyFunction: true
66 SplitEmptyRecord: true
67 SplitEmptyNamespace: true
68 #BreakAfterJavaFieldAnnotations: false
69 BreakBeforeBinaryOperators: All
70 BreakBeforeBraces: Custom
71 BreakBeforeInheritanceComma: false
72 BreakBeforeTernaryOperators: true
73 BreakConstructorInitializers: AfterColon
74 BreakConstructorInitializersBeforeComma: false
75 BreakInheritanceList: AfterColon
76 BreakStringLiterals: true
77 ColumnLimit: 80
78 #CommentPragmas: '^ IWYU pragma:'
79 CompactNamespaces: false
80 ConstructorInitializerAllOnOneLineOrOnePerLine: true
81 ConstructorInitializerIndentWidth: 4
82 ContinuationIndentWidth: 4
83 Cpp11BracedListStyle: true
84 DerivePointerAlignment: false
85 DisableFormat: false
86 #ExperimentalAutoDetectBinPacking: false
87 FixNamespaceComments: true
88 #ForEachMacros:
89 # - foreach
90 # - Q_FOREACH
91 # - BOOST_FOREACH
92 IncludeBlocks: Preserve
93 #IncludeCategories:
94 # - Regex: '^"(llvm|llvm-c|clang|clang-c)/'
95 # Priority: 2
96 # - Regex: '^(<|"(gtest|gmock|isl|json)/)'
97 # Priority: 3
98 # - Regex: '.*'
99 # Priority: 1
100 #IncludeIsMainRegex: '(Test)?$'
101 IndentCaseLabels: true
102 IndentPPDirectives: None
103 IndentWidth: 2
104 IndentWrappedFunctionNames: false
105 #JavaScriptQuotes: Leave
106 #JavaScriptWrapImports: true
107 KeepEmptyLinesAtTheStartOfBlocks: false
108 #MacroBlockBegin: ''
109 #MacroBlockEnd: ''
110 MaxEmptyLinesToKeep: 2
111 NamespaceIndentation: None
112 #ObjCBinPackProtocolList: Auto
113 #ObjCBlockIndentWidth: 2
114 #ObjCSpaceAfterProperty: false
115 #ObjCSpaceBeforeProtocolList: true
116 PenaltyBreakAssignment: 2
117 PenaltyBreakBeforeFirstCallParameter: 19
118 PenaltyBreakComment: 300
119 PenaltyBreakFirstLessLess: 120
120 PenaltyBreakString: 1000
121 PenaltyBreakTemplateDeclaration: 10
122 PenaltyExcessCharacter: 1000000
123 PenaltyReturnTypeOnItsOwnLine: 60
124 PointerAlignment: Middle
125 ReflowComments: true
126 SortIncludes: true
127 SortUsingDeclarations: true
128 SpaceAfterCStyleCast: true
129 SpaceAfterTemplateKeyword: false
130 SpaceBeforeAssignmentOperators: true
131 SpaceBeforeCpp11BracedList: true
132 SpaceBeforeCtorInitializerColon: true
133 SpaceBeforeInheritanceColon: true
134 SpaceBeforeParens: ControlStatements
135 SpaceBeforeRangeBasedForLoopColon: true
136 SpaceInEmptyParentheses: false
137 SpacesBeforeTrailingComments: 2
138 SpacesInAngles: false
139 SpacesInCStyleCastParentheses: false
140 SpacesInContainerLiterals: true
141 SpacesInParentheses: false
142 SpacesInSquareBrackets: false
143 Standard: Cpp03
144 TabWidth: 2
145 UseTab: Never
146 ...