forked from redo/BlockLua
.clang-format updates
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
BasedOnStyle: LLVM
|
||||
|
||||
# Include sorting and grouping
|
||||
SortIncludes: CaseSensitive
|
||||
IncludeBlocks: Preserve
|
||||
IncludeCategories:
|
||||
@@ -12,3 +14,29 @@ IncludeCategories:
|
||||
Priority: 4
|
||||
- Regex: ".*"
|
||||
Priority: 5
|
||||
|
||||
# Indentation settings
|
||||
IndentWidth: 2
|
||||
UseTab: Never
|
||||
IndentAccessModifiers: false
|
||||
AccessModifierOffset: 0
|
||||
NamespaceIndentation: All
|
||||
|
||||
# Line breaking and wrapping
|
||||
ColumnLimit: 120
|
||||
BreakBeforeTernaryOperators: false
|
||||
BreakBeforeBinaryOperators: None
|
||||
AlwaysBreakAfterReturnType: None
|
||||
AlwaysBreakAfterDefinitionReturnType: None
|
||||
|
||||
# Alignment
|
||||
AlignOperands: DontAlign
|
||||
AlignAfterOpenBracket: AlwaysBreak
|
||||
PointerAlignment: Left
|
||||
|
||||
# Parameter formatting
|
||||
BinPackParameters: false
|
||||
AllowAllParametersOfDeclarationOnNextLine: false
|
||||
|
||||
# Code organization
|
||||
SeparateDefinitionBlocks: Always
|
||||
|
||||
Reference in New Issue
Block a user