mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-17 15:25:35 +00:00
78 lines
2.2 KiB
YAML
78 lines
2.2 KiB
YAML
BasedOnStyle: Google
|
|
AlignAfterOpenBracket: AlwaysBreak
|
|
AlignConsecutiveAssignments: 'false'
|
|
AlignConsecutiveDeclarations: 'false'
|
|
AlignEscapedNewlinesLeft: 'true'
|
|
AlignOperands: 'false'
|
|
AlignTrailingComments: 'true'
|
|
AllowShortBlocksOnASingleLine: 'false'
|
|
AllowShortCaseLabelsOnASingleLine: 'false'
|
|
AllowShortFunctionsOnASingleLine: None
|
|
AllowShortIfStatementsOnASingleLine: 'false'
|
|
AllowShortLoopsOnASingleLine: 'false'
|
|
AlwaysBreakAfterDefinitionReturnType: All
|
|
AlwaysBreakAfterReturnType: All
|
|
AlwaysBreakTemplateDeclarations: 'true'
|
|
BreakBeforeBinaryOperators: NonAssignment
|
|
BreakBeforeBraces: Custom
|
|
BraceWrapping:
|
|
AfterCaseLabel: true
|
|
AfterClass: true
|
|
AfterControlStatement: true
|
|
AfterEnum: true
|
|
AfterFunction: true
|
|
AfterNamespace: true
|
|
AfterObjCDeclaration: true
|
|
AfterStruct: true
|
|
AfterUnion: true
|
|
AfterExternBlock: true
|
|
BeforeCatch: true
|
|
BeforeElse: true
|
|
SplitEmptyFunction: false
|
|
SplitEmptyRecord: false
|
|
SplitEmptyNamespace: false
|
|
BreakBeforeTernaryOperators: 'true'
|
|
BreakConstructorInitializersBeforeComma: 'true'
|
|
ColumnLimit: 100
|
|
Cpp11BracedListStyle: 'true'
|
|
KeepEmptyLinesAtTheStartOfBlocks: 'false'
|
|
NamespaceIndentation: All
|
|
PenaltyBreakString: '3'
|
|
SortIncludes: CaseInsensitive
|
|
SpaceBeforeParens: ControlStatements
|
|
SpacesInAngles: 'false'
|
|
SpacesInContainerLiterals: 'false'
|
|
SpacesInParentheses: 'false'
|
|
SpacesInSquareBrackets: 'false'
|
|
Standard: Cpp11
|
|
UseTab: Never
|
|
|
|
# treat pointers and reference declarations as if part of the type
|
|
DerivePointerAlignment: false
|
|
PointerAlignment: Left
|
|
|
|
# when wrapping function calls/declarations, force each parameter to have its own line
|
|
BinPackParameters: 'false'
|
|
BinPackArguments: 'false'
|
|
|
|
# Include block sorting in the following order:
|
|
# - Main header for source file (clang-format default prioritizes this first)
|
|
# - Relative path includes in quotation marks
|
|
# - Absolute path includes in angle brackets
|
|
# - External dependencies
|
|
# - System dependencies
|
|
IncludeBlocks: Regroup
|
|
IncludeCategories:
|
|
- Regex: '".+\.h'
|
|
Priority: 2
|
|
- Regex: '^<llarp'
|
|
Priority: 3
|
|
- Regex: '<winsock2\.h>'
|
|
Priority: 4
|
|
- Regex: '<windows\.h>'
|
|
Priority: 5
|
|
- Regex: '^<.*\.h(pp)?>$'
|
|
Priority: 6
|
|
- Regex: '(<)(.)+(>)'
|
|
Priority: 7
|