ResInsight/ApplicationLibCode/.clang-format

79 lines
2.2 KiB
Plaintext
Raw Normal View History

2017-11-21 07:05:42 -06:00
---
Language: Cpp
2017-11-21 07:05:42 -06:00
# BasedOnStyle: LLVM
2017-11-22 03:53:03 -06:00
AccessModifierOffset: -4
2017-11-21 07:05:42 -06:00
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
2017-11-21 07:05:42 -06:00
AlignEscapedNewlinesLeft: true
AlignOperands: true
2017-11-21 07:05:42 -06:00
AlignTrailingComments: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: true
AllowShortFunctionsOnASingleLine: InlineOnly
2017-11-21 07:05:42 -06:00
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: true
BinPackArguments: false
BinPackParameters: false
2017-11-21 07:05:42 -06:00
BreakBeforeBinaryOperators: None
2019-09-06 03:55:15 -05:00
BreakBeforeBraces: Allman
2017-11-21 07:05:42 -06:00
BreakBeforeTernaryOperators: true
2018-02-07 01:54:53 -06:00
BreakConstructorInitializersBeforeComma: true
2017-11-21 07:05:42 -06:00
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 140
CommentPragmas: "^ IWYU pragma:"
2017-11-21 07:05:42 -06:00
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: false
DisableFormat: false
ForEachMacros: [foreach, Q_FOREACH, BOOST_FOREACH]
2017-11-21 07:05:42 -06:00
IncludeCategories:
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 2
- Regex: '^(<|"(gtest|isl|json)/)'
Priority: 3
- Regex: ".*"
Priority: 1
IncludeIsMainRegex: "$"
2017-11-21 07:05:42 -06:00
IndentCaseLabels: true
IndentWidth: 4
2017-11-21 07:05:42 -06:00
IndentWrappedFunctionNames: true
JavaScriptQuotes: Leave
KeepEmptyLinesAtTheStartOfBlocks: false
MacroBlockBegin: ""
MacroBlockEnd: ""
2017-11-21 07:05:42 -06:00
MaxEmptyLinesToKeep: 1
NamespaceIndentation: Inner
PenaltyBreakAssignment: 13
PenaltyBreakBeforeFirstCallParameter: 10000
PenaltyBreakComment: 20
PenaltyBreakFirstLessLess: 12
PenaltyBreakString: 100
PenaltyExcessCharacter: 5
PenaltyReturnTypeOnItsOwnLine: 30
2017-11-21 07:05:42 -06:00
PointerAlignment: Left
ReflowComments: true
SortIncludes: true
2017-11-21 07:05:42 -06:00
SpaceAfterCStyleCast: false
2019-09-06 03:55:15 -05:00
SpaceAfterTemplateKeyword: true
2017-11-21 07:05:42 -06:00
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
2017-11-21 07:05:42 -06:00
SpacesInContainerLiterals: false
SpacesInCStyleCastParentheses: false
2019-09-06 03:55:15 -05:00
SpacesInParentheses: true
2017-11-21 07:05:42 -06:00
SpacesInSquareBrackets: false
Standard: c++20
TabWidth: 4
UseTab: Never