This repository has been archived on 2022-02-10. You can view files and clone it, but cannot push or open issues or pull requests.
fortuna/.clang-format

72 lines
2.0 KiB
Plaintext
Raw Normal View History

2021-10-19 15:05:18 +02:00
BasedOnStyle: LLVM
AccessModifierOffset: -4
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: None
2022-01-10 01:56:37 +01:00
AlignConsecutiveMacros: Consecutive
2021-10-19 15:05:18 +02:00
AlignOperands: Align
2022-01-10 01:56:37 +01:00
AllowAllArgumentsOnNextLine: true
AllowAllConstructorInitializersOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: Empty
2021-10-19 15:05:18 +02:00
AllowShortCaseLabelsOnASingleLine: false
2022-01-10 01:56:37 +01:00
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: false
2021-10-19 15:05:18 +02:00
AllowShortLambdasOnASingleLine: All
2022-01-10 01:56:37 +01:00
AllowShortLoopsOnASingleLine: false
2021-10-19 15:05:18 +02:00
AlwaysBreakAfterReturnType: None
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: false
BinPackParameters: false
2021-10-19 15:05:18 +02:00
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: Never
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterUnion: false
2022-01-10 01:56:37 +01:00
BeforeCatch: true
BeforeElse: true
2021-10-19 15:05:18 +02:00
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: true
BreakBeforeBinaryOperators: None
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeColon
BreakInheritanceList: BeforeColon
2022-01-10 01:56:37 +01:00
ColumnLimit: 80
2021-10-19 15:05:18 +02:00
CompactNamespaces: false
2022-01-10 01:56:37 +01:00
ContinuationIndentWidth: 4
IndentCaseLabels: false
2021-10-19 15:05:18 +02:00
IndentPPDirectives: None
2022-01-10 01:56:37 +01:00
# wait for this
# IndentPragmas: true
2021-10-19 15:05:18 +02:00
IndentWidth: 4
KeepEmptyLinesAtTheStartOfBlocks: true
MaxEmptyLinesToKeep: 2
2022-01-10 01:56:37 +01:00
NamespaceIndentation: None
# Force pointers to the type for C++.
DerivePointerAlignment: false
PointerAlignment: Left
ReflowComments: true
AlignTrailingComments: false
2021-10-19 15:05:18 +02:00
SpaceAfterCStyleCast: true
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
2022-01-10 01:56:37 +01:00
SpaceBeforeRangeBasedForLoopColon: false
2021-10-19 15:05:18 +02:00
SpaceInEmptyParentheses: false
2022-01-10 01:56:37 +01:00
SpacesBeforeTrailingComments: 1
2021-10-19 15:05:18 +02:00
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
2022-01-10 01:56:37 +01:00
TabWidth: 4
UseTab: Always