eccodes/.clang-format

107 lines
3.0 KiB
Plaintext
Raw Permalink Normal View History

2020-01-22 13:10:59 +00:00
---
Language: Cpp
AccessModifierOffset: -4
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Left
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
2023-10-27 15:50:04 +00:00
AllowShortBlocksOnASingleLine: false
2020-01-22 13:10:59 +00:00
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Inline
2023-10-27 15:50:04 +00:00
AllowShortIfStatementsOnASingleLine: false
2020-01-22 13:10:59 +00:00
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: true
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
2023-10-27 15:50:04 +00:00
AfterClass: false
2020-01-22 13:10:59 +00:00
AfterControlStatement: false
AfterEnum: true
2023-10-27 15:50:04 +00:00
AfterFunction: false
AfterNamespace: false
2020-01-22 13:10:59 +00:00
AfterObjCDeclaration: false
2023-10-27 15:50:04 +00:00
AfterStruct: false
AfterUnion: false
2020-01-22 13:10:59 +00:00
BeforeCatch: true
BeforeElse: true
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Custom
BreakBeforeInheritanceComma: false
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: AfterColon
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
2023-10-27 15:50:04 +00:00
ColumnLimit: 120
2020-01-22 13:10:59 +00:00
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
2023-10-27 15:50:04 +00:00
Cpp11BracedListStyle: true
2020-01-22 13:10:59 +00:00
DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IncludeCategories:
- Regex: '^<.*\.h>'
Priority: 1
- Regex: '^<.*'
Priority: 2
- Regex: '.*'
Priority: 3
IncludeIsMainRegex: '([-_](test|unittest))?$'
IndentCaseLabels: true
2023-10-27 15:50:04 +00:00
IndentWidth: 4
2020-01-22 13:10:59 +00:00
IndentWrappedFunctionNames: false
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
2023-10-27 15:50:04 +00:00
KeepEmptyLinesAtTheStartOfBlocks: true
2020-01-22 13:10:59 +00:00
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 2
NamespaceIndentation: None
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: false
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 1
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 200
PointerAlignment: Left
ReflowComments: true
2023-10-27 15:50:04 +00:00
SortIncludes: true
2020-01-22 13:10:59 +00:00
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 2
SpacesInAngles: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Auto
TabWidth: 4
UseTab: Never
...