51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
BasedOnStyle: Google
|
|
Language: C
|
|
|
|
# Lines
|
|
ColumnLimit: 80
|
|
AllowShortFunctionsOnASingleLine: All
|
|
AllowShortBlocksOnASingleLine: true
|
|
AllowShortCaseLabelsOnASingleLine: true
|
|
AllowShortIfStatementsOnASingleLine: WithoutElse
|
|
AllowShortLoopsOnASingleLine: true
|
|
AllowShortLambdasOnASingleLine: All
|
|
AlwaysBreakTemplateDeclarations: Yes
|
|
CompactNamespaces: true
|
|
|
|
# Wrapping / Packing
|
|
BinPackArguments: false
|
|
BinPackParameters: false
|
|
BreakConstructorInitializers: BeforeComma
|
|
BreakInheritanceList: BeforeComma
|
|
BreakStringLiterals: true
|
|
ConstructorInitializerAllOnOneLineOrOnePerLine: false
|
|
|
|
# Alignment
|
|
AlignAfterOpenBracket: Align
|
|
AlignConsecutiveAssignments: true
|
|
AlignConsecutiveMacros: true
|
|
AlignOperands: true
|
|
AlignTrailingComments: true
|
|
AlignEscapedNewlines: Right
|
|
PointerAlignment: Left
|
|
|
|
# Indentation
|
|
TabWidth: 4
|
|
IndentWidth: 4
|
|
ContinuationIndentWidth: 4
|
|
UseTab: ForIndentation
|
|
IndentCaseLabels: false
|
|
IndentPPDirectives: AfterHash
|
|
SpacesBeforeTrailingComments: 2
|
|
IndentCaseLabels: true
|
|
|
|
# Misc
|
|
FixNamespaceComments: true
|
|
|
|
# Includes
|
|
SortIncludes: true
|
|
IncludeBlocks: Preserve
|
|
|
|
# Penalties
|
|
PenaltyReturnTypeOnItsOwnLine: 1000
|