67 lines
2 KiB
Text
67 lines
2 KiB
Text
|
# works with clang-format-3.7
|
||
|
#
|
||
|
# Most controversial fields are UseTab, IndentWidth, ContinuationIndentWidth, ColumnLimit, BreakBeforeBraces
|
||
|
|
||
|
#BasedOnStyle: Google
|
||
|
AccessModifierOffset: 0
|
||
|
AlignAfterOpenBracket: true
|
||
|
AlignConsecutiveAssignments: false
|
||
|
#AlignConsecutiveDeclarations: false
|
||
|
AlignEscapedNewlinesLeft: true
|
||
|
AlignOperands: true
|
||
|
AlignTrailingComments: true
|
||
|
AllowAllParametersOfDeclarationOnNextLine: false
|
||
|
AllowShortBlocksOnASingleLine: false
|
||
|
AllowShortCaseLabelsOnASingleLine: false
|
||
|
AllowShortFunctionsOnASingleLine: Empty
|
||
|
AllowShortIfStatementsOnASingleLine: false
|
||
|
AllowShortLoopsOnASingleLine: false
|
||
|
AlwaysBreakAfterDefinitionReturnType: None
|
||
|
AlwaysBreakBeforeMultilineStrings: false
|
||
|
AlwaysBreakTemplateDeclarations: false
|
||
|
BinPackArguments: false
|
||
|
BinPackParameters: false
|
||
|
BreakBeforeBinaryOperators: None
|
||
|
BreakBeforeBraces: Linux
|
||
|
BreakBeforeTernaryOperators: true
|
||
|
BreakConstructorInitializersBeforeComma: false
|
||
|
ColumnLimit: 120
|
||
|
CommentPragmas: ''
|
||
|
ConstructorInitializerAllOnOneLineOrOnePerLine: true
|
||
|
ConstructorInitializerIndentWidth: 0
|
||
|
ContinuationIndentWidth: 4
|
||
|
Cpp11BracedListStyle: true
|
||
|
DerivePointerAlignment: false
|
||
|
DerivePointerBinding: false
|
||
|
DisableFormat: false
|
||
|
ForEachMacros: ['foreach']
|
||
|
IndentCaseLabels: false
|
||
|
IndentFunctionDeclarationAfterType: false
|
||
|
IndentWidth: 4
|
||
|
IndentWrappedFunctionNames: false
|
||
|
Language: Cpp
|
||
|
MaxEmptyLinesToKeep: 1
|
||
|
NamespaceIndentation: None
|
||
|
ObjCSpaceAfterProperty: true
|
||
|
ObjCSpaceBeforeProtocolList: true
|
||
|
PenaltyBreakBeforeFirstCallParameter: 1000
|
||
|
PenaltyBreakComment: 100
|
||
|
PenaltyBreakFirstLessLess: 0
|
||
|
PenaltyBreakString: 100
|
||
|
PenaltyExcessCharacter: 100
|
||
|
PenaltyReturnTypeOnItsOwnLine: 2000
|
||
|
PointerAlignment: Right
|
||
|
SpaceAfterCStyleCast: false
|
||
|
SpaceBeforeAssignmentOperators: true
|
||
|
SpaceBeforeParens: ControlStatements
|
||
|
SpaceInEmptyParentheses: false
|
||
|
SpacesBeforeTrailingComments: 1
|
||
|
SpacesInAngles: false
|
||
|
SpacesInCStyleCastParentheses: false
|
||
|
SpacesInContainerLiterals: false
|
||
|
SpacesInParentheses: false
|
||
|
SpacesInSquareBrackets: false
|
||
|
Standard: Cpp11
|
||
|
TabWidth: 4
|
||
|
UseTab: ForIndentation
|