
Add .clang-format file so that it can be used to maintain the same style throughout the library. Change-Id: I22bd21055f565a886b5a880856810f4b35b22cce
54 lines
1.5 KiB
YAML
54 lines
1.5 KiB
YAML
---
|
|
Language: Cpp
|
|
# BasedOnStyle: Google
|
|
AccessModifierOffset: -1
|
|
ConstructorInitializerIndentWidth: 4
|
|
AlignEscapedNewlinesLeft: true
|
|
AlignTrailingComments: true
|
|
AllowAllParametersOfDeclarationOnNextLine: true
|
|
AllowShortIfStatementsOnASingleLine: false
|
|
AllowShortLoopsOnASingleLine: false
|
|
AllowShortFunctionsOnASingleLine: false
|
|
AlwaysBreakTemplateDeclarations: true
|
|
AlwaysBreakBeforeMultilineStrings: true
|
|
BreakBeforeBinaryOperators: false
|
|
BreakBeforeTernaryOperators: true
|
|
BreakConstructorInitializersBeforeComma: false
|
|
BinPackParameters: true
|
|
ColumnLimit: 80
|
|
ConstructorInitializerAllOnOneLineOrOnePerLine: true
|
|
DerivePointerBinding: true
|
|
ExperimentalAutoDetectBinPacking: false
|
|
IndentCaseLabels: true
|
|
MaxEmptyLinesToKeep: 1
|
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
|
NamespaceIndentation: None
|
|
ObjCSpaceAfterProperty: false
|
|
ObjCSpaceBeforeProtocolList: false
|
|
PenaltyBreakBeforeFirstCallParameter: 1
|
|
PenaltyBreakComment: 300
|
|
PenaltyBreakString: 1000
|
|
PenaltyBreakFirstLessLess: 120
|
|
PenaltyExcessCharacter: 1000000
|
|
PenaltyReturnTypeOnItsOwnLine: 200
|
|
PointerBindsToType: true
|
|
SpacesBeforeTrailingComments: 2
|
|
Cpp11BracedListStyle: true
|
|
Standard: Auto
|
|
IndentWidth: 2
|
|
TabWidth: 8
|
|
UseTab: Never
|
|
BreakBeforeBraces: Attach
|
|
IndentFunctionDeclarationAfterType: true
|
|
SpacesInParentheses: false
|
|
SpacesInAngles: false
|
|
SpaceInEmptyParentheses: false
|
|
SpacesInCStyleCastParentheses: false
|
|
SpacesInContainerLiterals: true
|
|
SpaceBeforeAssignmentOperators: true
|
|
ContinuationIndentWidth: 4
|
|
CommentPragmas: '^ IWYU pragma:'
|
|
SpaceBeforeParens: ControlStatements
|
|
...
|
|
|