dotfiles/.clang-format

73 lines
2.0 KiB
YAML
Raw Normal View History

2019-05-28 17:44:30 +02:00
---
2020-07-15 17:51:59 +02:00
AlignAfterOpenBracket: "Align"
2019-05-28 17:44:30 +02:00
AlignConsecutiveAssignments: false
AlignEscapedNewlines: "DontAlign"
AlignTrailingComments: false
2020-07-15 17:51:59 +02:00
AllowAllArgumentsOnNextLine: true
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: "Inline"
AllowShortIfStatementsOnASingleLine: "WithoutElse"
2019-05-28 17:44:30 +02:00
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterReturnType: "None"
AlwaysBreakBeforeMultilineStrings: false
BinPackArguments: true
BinPackParameters: true
BreakBeforeBinaryOperators: "None"
BreakBeforeBraces: "Attach"
2020-07-15 17:51:59 +02:00
BreakBeforeTernaryOperators: true
2019-05-28 17:44:30 +02:00
BreakStringLiterals: true
ColumnLimit: 80
CommentPragmas: "https?://"
DerivePointerAlignment: false
2020-07-15 17:51:59 +02:00
FixNamespaceComments: true
2019-05-28 17:44:30 +02:00
IncludeBlocks: "Regroup"
IncludeCategories:
- Regex: "^<.*"
Priority: 1
- Regex: "^\".*"
Priority: 2
IndentCaseLabels: true
IndentPPDirectives: "AfterHash"
IndentWidth: 4
IndentWrappedFunctionNames: true
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 2
PointerAlignment: "Right"
ReflowComments: true
SortIncludes: true
SortUsingDeclarations: true
SpaceAfterCStyleCast: true
2020-07-15 17:51:59 +02:00
SpaceAfterTemplateKeyword: true
2019-05-28 17:44:30 +02:00
SpaceBeforeAssignmentOperators: true
2020-07-15 17:51:59 +02:00
SpaceBeforeParens: "ControlStatements"
2019-05-28 17:44:30 +02:00
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 2
SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
TabWidth: 4
UseTab: "Never"
---
Language: "Cpp"
2020-07-15 17:51:59 +02:00
AccessModifierOffset: -4
AllowShortLambdasOnASingleLine: "All"
2019-05-28 17:44:30 +02:00
AlwaysBreakTemplateDeclarations: "No"
BreakConstructorInitializers: "AfterColon"
BreakInheritanceList: "AfterColon"
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
FixNamespaceComments: true
NamespaceIndentation: "All"
2020-07-15 17:51:59 +02:00
SortUsingDeclarations: true
2019-05-28 17:44:30 +02:00
SpaceAfterTemplateKeyword: false
2020-07-15 17:51:59 +02:00
SpaceBeforeCpp11BracedList: true
2019-05-28 17:44:30 +02:00
SpaceBeforeCtorInitializerColon: false
SpaceBeforeInheritanceColon: true
SpaceBeforeRangeBasedForLoopColon: true
SpacesInAngles: false
2020-07-15 17:51:59 +02:00
Standard: "c++17"
2019-05-28 17:44:30 +02:00
# vim:ft=yaml: