Browse Source

misc: Converted the clang-format configuration to use LF-only newlines for consistency

fix/clang-format-cleanup
dragonmux 2 years ago
parent
commit
f5bad1678f
No known key found for this signature in database GPG Key ID: 64861EA89B35507A
  1. 114
      .clang-format

114
.clang-format

@ -1,57 +1,57 @@
---
AccessModifierOffset: -4
AlignAfterOpenBracket: DontAlign
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignConsecutiveMacros: true
AlignEscapedNewlines: Left
AllowAllArgumentsOnNextLine: true
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: false
AllowShortEnumsOnASingleLine: false
# This is currently broken:
# https://github.com/llvm/llvm-project/issues/53442
#AlignArrayOfStructures: Left
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
BreakBeforeBraces: Linux
BasedOnStyle: LLVM
BinPackArguments: true
BinPackParameters: true
ColumnLimit: 120
Cpp11BracedListStyle: true
IndentCaseLabels: false
IndentWidth: 4
ContinuationIndentWidth: 4
KeepEmptyLinesAtTheStartOfBlocks: false
FixNamespaceComments: true
ForEachMacros: ['TRY_CATCH']
#QualifierAlignment: Custom
#QualifierOrder: ['inline', 'static', 'const', 'volatile', 'type']
SpaceAroundPointerQualifiers: After
# Taken from git's rules
#PenaltyBreakAssignment: 10 # Unknown to clang-format-4.0
PenaltyBreakBeforeFirstCallParameter: 50
PenaltyBreakComment: 10
PenaltyBreakFirstLessLess: 0
PenaltyBreakString: 10
PenaltyExcessCharacter: 100
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Right
ReflowComments: false
SpacesBeforeTrailingComments: 1
SortIncludes: false
TabWidth: 4
UseTab: AlignWithSpaces
---
AccessModifierOffset: -4
AlignAfterOpenBracket: DontAlign
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignConsecutiveMacros: true
AlignEscapedNewlines: Left
AllowAllArgumentsOnNextLine: true
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: false
AllowShortEnumsOnASingleLine: false
# This is currently broken:
# https://github.com/llvm/llvm-project/issues/53442
#AlignArrayOfStructures: Left
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
BreakBeforeBraces: Linux
BasedOnStyle: LLVM
BinPackArguments: true
BinPackParameters: true
ColumnLimit: 120
Cpp11BracedListStyle: true
IndentCaseLabels: false
IndentWidth: 4
ContinuationIndentWidth: 4
KeepEmptyLinesAtTheStartOfBlocks: false
FixNamespaceComments: true
ForEachMacros: ['TRY_CATCH']
#QualifierAlignment: Custom
#QualifierOrder: ['inline', 'static', 'const', 'volatile', 'type']
SpaceAroundPointerQualifiers: After
# Taken from git's rules
#PenaltyBreakAssignment: 10 # Unknown to clang-format-4.0
PenaltyBreakBeforeFirstCallParameter: 50
PenaltyBreakComment: 10
PenaltyBreakFirstLessLess: 0
PenaltyBreakString: 10
PenaltyExcessCharacter: 100
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Right
ReflowComments: false
SpacesBeforeTrailingComments: 1
SortIncludes: false
TabWidth: 4
UseTab: AlignWithSpaces

Loading…
Cancel
Save