mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-11 07:10:36 +00:00
46ad8d4058
- includes are now sorted in consistent, logical order; first step in an attempt to fix the tomfoolery (no relation to Tom) brought in by include-what-you-use - shuffled around some cmake linking to simplify dependency graph - superfluous files removed
76 lines
2.1 KiB
YAML
76 lines
2.1 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: '^<.*\.h(pp)?>$'
|
|
Priority: 5
|
|
- Regex: '(<)(.)+(>)'
|
|
Priority: 6
|