misc: Cleaned up the clang-format configuration ready for it to be applied
This commit is contained in:
parent
30a7e9f0d4
commit
0e184c7b98
|
@ -1,10 +1,14 @@
|
||||||
---
|
---
|
||||||
AccessModifierOffset: -4
|
AccessModifierOffset: -4
|
||||||
AlignAfterOpenBracket: Align
|
AlignAfterOpenBracket: DontAlign
|
||||||
AlignConsecutiveAssignments: false
|
AlignConsecutiveAssignments: false
|
||||||
AlignConsecutiveDeclarations: false
|
AlignConsecutiveDeclarations: false
|
||||||
|
AlignConsecutiveMacros: true
|
||||||
|
AlignEscapedNewlines: Left
|
||||||
|
AllowAllArgumentsOnNextLine: true
|
||||||
AllowShortFunctionsOnASingleLine: None
|
AllowShortFunctionsOnASingleLine: None
|
||||||
AllowShortIfStatementsOnASingleLine: false
|
AllowShortIfStatementsOnASingleLine: false
|
||||||
|
AllowShortEnumsOnASingleLine: false
|
||||||
# This is currently broken:
|
# This is currently broken:
|
||||||
# https://github.com/llvm/llvm-project/issues/53442
|
# https://github.com/llvm/llvm-project/issues/53442
|
||||||
#AlignArrayOfStructures: Left
|
#AlignArrayOfStructures: Left
|
||||||
|
@ -22,15 +26,23 @@ BraceWrapping:
|
||||||
IndentBraces: false
|
IndentBraces: false
|
||||||
BreakBeforeBraces: Linux
|
BreakBeforeBraces: Linux
|
||||||
BasedOnStyle: LLVM
|
BasedOnStyle: LLVM
|
||||||
|
BinPackArguments: true
|
||||||
|
BinPackParameters: true
|
||||||
ColumnLimit: 120
|
ColumnLimit: 120
|
||||||
Cpp11BracedListStyle: false
|
Cpp11BracedListStyle: true
|
||||||
IndentCaseLabels: false
|
IndentCaseLabels: false
|
||||||
IndentWidth: 8
|
IndentWidth: 4
|
||||||
|
ContinuationIndentWidth: 4
|
||||||
KeepEmptyLinesAtTheStartOfBlocks: false
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
||||||
|
FixNamespaceComments: true
|
||||||
|
ForEachMacros: ['TRY_CATCH']
|
||||||
|
#QualifierAlignment: Custom
|
||||||
|
#QualifierOrder: ['inline', 'static', 'const', 'volatile', 'type']
|
||||||
|
SpaceAroundPointerQualifiers: After
|
||||||
|
|
||||||
# Taken from git's rules
|
# Taken from git's rules
|
||||||
#PenaltyBreakAssignment: 10 # Unknown to clang-format-4.0
|
#PenaltyBreakAssignment: 10 # Unknown to clang-format-4.0
|
||||||
PenaltyBreakBeforeFirstCallParameter: 30
|
PenaltyBreakBeforeFirstCallParameter: 50
|
||||||
PenaltyBreakComment: 10
|
PenaltyBreakComment: 10
|
||||||
PenaltyBreakFirstLessLess: 0
|
PenaltyBreakFirstLessLess: 0
|
||||||
PenaltyBreakString: 10
|
PenaltyBreakString: 10
|
||||||
|
@ -41,5 +53,5 @@ PointerAlignment: Right
|
||||||
ReflowComments: false
|
ReflowComments: false
|
||||||
SpacesBeforeTrailingComments: 1
|
SpacesBeforeTrailingComments: 1
|
||||||
SortIncludes: false
|
SortIncludes: false
|
||||||
TabWidth: 8
|
TabWidth: 4
|
||||||
UseTab: Always
|
UseTab: AlignWithSpaces
|
||||||
|
|
Loading…
Reference in New Issue