72 lines
2.1 KiB
YAML
72 lines
2.1 KiB
YAML
# Ultracruise Localization clang-format configuration file
|
|
# Please seek consensus from the team before modifying this file.
|
|
#
|
|
# To compare these settings with all available clang-format options:
|
|
# diff <(clang-format -dump-config | grep -Ev '^$|^( |BraceWrapping|IncludeCategories)' | sed -Ee 's/: +/: /g' | sort) <(cat .clang-format | grep -Ev '^$|^#' | sort) | colordiff
|
|
#
|
|
|
|
DisableFormat: false
|
|
Language: Cpp
|
|
Standard: Cpp11
|
|
|
|
# Indentation & whitespace
|
|
AccessModifierOffset: -4
|
|
ColumnLimit: 140
|
|
ConstructorInitializerIndentWidth: 8
|
|
ContinuationIndentWidth: 8
|
|
IndentCaseLabels: true
|
|
IndentWidth: 4
|
|
IndentWrappedFunctionNames: false
|
|
KeepEmptyLinesAtTheStartOfBlocks: true
|
|
MaxEmptyLinesToKeep: 2
|
|
NamespaceIndentation: None
|
|
SpacesBeforeTrailingComments: 2
|
|
TabWidth: 4
|
|
UseTab: Never
|
|
|
|
# Spacing style
|
|
Cpp11BracedListStyle: true
|
|
DerivePointerAlignment: false
|
|
PointerAlignment: Left
|
|
SpaceAfterCStyleCast: true
|
|
SpaceBeforeAssignmentOperators: true
|
|
SpaceBeforeParens: ControlStatements
|
|
SpaceInEmptyParentheses: false
|
|
SpacesInCStyleCastParentheses: false
|
|
SpacesInContainerLiterals: false
|
|
SpacesInParentheses: false
|
|
SpacesInSquareBrackets: false
|
|
|
|
# Comments
|
|
AlignTrailingComments: true
|
|
CommentPragmas: ''
|
|
ReflowComments: true
|
|
|
|
# Pattern-based special behavior
|
|
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
|
|
IncludeCategories: []
|
|
MacroBlockBegin: ''
|
|
MacroBlockEnd: ''
|
|
|
|
# Alignment & breaking
|
|
AlignAfterOpenBracket: AlwaysBreak
|
|
AlignConsecutiveAssignments: false
|
|
AlignConsecutiveDeclarations: false
|
|
AlignOperands: false
|
|
AllowAllParametersOfDeclarationOnNextLine: false
|
|
AllowShortBlocksOnASingleLine: false
|
|
AllowShortCaseLabelsOnASingleLine: false
|
|
AllowShortFunctionsOnASingleLine: Empty
|
|
AllowShortIfStatementsOnASingleLine: false
|
|
AllowShortLoopsOnASingleLine: false
|
|
AlwaysBreakAfterReturnType: None
|
|
AlwaysBreakBeforeMultilineStrings: true
|
|
AlwaysBreakTemplateDeclarations: true
|
|
BinPackArguments: false
|
|
BinPackParameters: false
|
|
BreakBeforeBinaryOperators: NonAssignment
|
|
BreakBeforeBraces: Attach
|
|
BreakBeforeTernaryOperators: true
|
|
BreakConstructorInitializersBeforeComma: true
|
|
ConstructorInitializerAllOnOneLineOrOnePerLine: true
|