forked from LLNL/sundials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
146 lines (146 loc) · 6.81 KB
/
.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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# ------------------------------------------------------------------------------
# SUNDIALS Copyright Start
# Copyright (c) 2002-2022, Lawrence Livermore National Security
# and Southern Methodist University.
# All rights reserved.
#
# See the top-level LICENSE and NOTICE files for details.
#
# SPDX-License-Identifier: BSD-3-Clause
# SUNDIALS Copyright End
# ------------------------------------------------------------------------------
# clang-format style configuration file based on Google style
# clang-format -style=.clang-format -i src/cvode/cvode.c
# This should be applied to all new code. See the developer documentation.
#
# Requires clang-format >= 14.0.0
# ------------------------------------------------------------------------------
---
Language : Cpp
BasedOnStyle : Google
AccessModifierOffset : -2
AlignAfterOpenBracket : Align
AlignConsecutiveAssignments : true
AlignConsecutiveDeclarations : false
AlignConsecutiveMacros : true
AlignEscapedNewlines : Left
AlignOperands : true
AlignTrailingComments : true
AllowAllArgumentsOnNextLine : true
AllowAllParametersOfDeclarationOnNextLine : false
AllowShortBlocksOnASingleLine : Always
AllowShortCaseLabelsOnASingleLine : true
AllowShortEnumsOnASingleLine : false
AllowShortFunctionsOnASingleLine : All
AllowShortIfStatementsOnASingleLine : AllIfsAndElse
AllowShortLambdasOnASingleLine : All
AllowShortLoopsOnASingleLine : true
AlwaysBreakAfterDefinitionReturnType : None
AlwaysBreakAfterReturnType : None
AlwaysBreakBeforeMultilineStrings : false
AlwaysBreakTemplateDeclarations : true
BinPackArguments : true
BinPackParameters : true
BraceWrapping :
AfterCaseLabel : true
AfterClass : true
AfterControlStatement : Always
AfterEnum : true
AfterFunction : true
AfterNamespace : false
AfterStruct : true
AfterUnion : true
AfterExternBlock : false
BeforeCatch : true
BeforeElse : true
BeforeLambdaBody : true
BeforeWhile : true
IndentBraces : false
SplitEmptyFunction : false
SplitEmptyRecord : false
SplitEmptyNamespace : false
BreakBeforeBinaryOperators : None
BreakBeforeBraces : Custom
BreakBeforeConceptDeclarations : true
BreakBeforeTernaryOperators : true
BreakConstructorInitializers : BeforeColon
BreakInheritanceList : BeforeColon
BreakStringLiterals : true
ColumnLimit : 80
CommentPragmas : '^ IWYU pragma:'
CompactNamespaces : false
ConstructorInitializerIndentWidth : 2
ContinuationIndentWidth : 2
Cpp11BracedListStyle : true
DeriveLineEnding : false
DerivePointerAlignment : false
DisableFormat : false
EmptyLineAfterAccessModifier : Never
EmptyLineBeforeAccessModifier : Always
ExperimentalAutoDetectBinPacking : false
FixNamespaceComments : true
IncludeBlocks : Preserve
IncludeCategories :
- Regex : '^(<|"(gtest|gmock|isl|json)/)'
Priority : 1
SortPriority : 0
- Regex : '.*'
Priority : 2
SortPriority : 0
IncludeIsMainRegex : '(Test)?$'
IncludeIsMainSourceRegex : ''
IndentAccessModifiers : false
IndentCaseBlocks : false
IndentCaseLabels : false
IndentExternBlock : false
IndentGotoLabels : true
IndentPPDirectives : None
IndentWidth : 2
IndentWrappedFunctionNames : false
KeepEmptyLinesAtTheStartOfBlocks: false
LambdaBodyIndentation : Signature
MacroBlockBegin : ''
MacroBlockEnd : ''
MaxEmptyLinesToKeep : 1
NamespaceIndentation : None
PackConstructorInitializers : NextLine
# Keep our penalties in the range [1, 100,000]
PenaltyBreakAssignment : 25
PenaltyBreakBeforeFirstCallParameter: 10000 # (penalize more)
PenaltyBreakComment : 10 # (prefer breaking comment)
PenaltyBreakFirstLessLess : 100
PenaltyBreakString : 1000
PenaltyBreakTemplateDeclaration : 10
PenaltyExcessCharacter : 10 # (loosen to allow possibly a couple extra characters)
PenaltyReturnTypeOnItsOwnLine : 10000 # (penalize more)
PointerAlignment : Left
QualifierAlignment : Leave
ReferenceAlignment : Pointer
ReflowComments : false
SeparateDefinitionBlocks : Always
SortIncludes : true
SortUsingDeclarations : true
SpaceAfterCStyleCast : false
SpaceAfterLogicalNot : false
SpaceAfterTemplateKeyword : false
SpaceAroundPointerQualifiers : Default
SpaceBeforeAssignmentOperators : true
SpaceBeforeCpp11BracedList : false
SpaceBeforeCtorInitializerColon : true
SpaceBeforeInheritanceColon : true
SpaceBeforeParens : ControlStatements
SpaceBeforeRangeBasedForLoopColon : true
SpaceBeforeSquareBrackets : false
SpaceInEmptyBlock : false
SpaceInEmptyParentheses : false
SpacesBeforeTrailingComments : 1
SpacesInAngles : false
SpacesInCStyleCastParentheses : false
SpacesInConditionalStatement : false
SpacesInContainerLiterals : true
SpacesInParentheses : false
SpacesInSquareBrackets : false
Standard : c++14
TabWidth: 2
UseCRLF : false
UseTab : Never