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 AccessModifierOffset: -4
AlignAfterOpenBracket: DontAlign AlignAfterOpenBracket: DontAlign
AlignConsecutiveAssignments: false AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false AlignConsecutiveDeclarations: false
AlignConsecutiveMacros: true AlignConsecutiveMacros: true
AlignEscapedNewlines: Left AlignEscapedNewlines: Left
AllowAllArgumentsOnNextLine: true AllowAllArgumentsOnNextLine: true
AllowShortFunctionsOnASingleLine: None AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: false AllowShortIfStatementsOnASingleLine: false
AllowShortEnumsOnASingleLine: 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
BraceWrapping: BraceWrapping:
AfterClass: false AfterClass: false
AfterControlStatement: false AfterControlStatement: false
AfterEnum: false AfterEnum: false
AfterFunction: true AfterFunction: true
AfterNamespace: true AfterNamespace: true
AfterObjCDeclaration: false AfterObjCDeclaration: false
AfterStruct: false AfterStruct: false
AfterUnion: false AfterUnion: false
BeforeCatch: false BeforeCatch: false
BeforeElse: false BeforeElse: false
IndentBraces: false IndentBraces: false
BreakBeforeBraces: Linux BreakBeforeBraces: Linux
BasedOnStyle: LLVM BasedOnStyle: LLVM
BinPackArguments: true BinPackArguments: true
BinPackParameters: true BinPackParameters: true
ColumnLimit: 120 ColumnLimit: 120
Cpp11BracedListStyle: true Cpp11BracedListStyle: true
IndentCaseLabels: false IndentCaseLabels: false
IndentWidth: 4 IndentWidth: 4
ContinuationIndentWidth: 4 ContinuationIndentWidth: 4
KeepEmptyLinesAtTheStartOfBlocks: false KeepEmptyLinesAtTheStartOfBlocks: false
FixNamespaceComments: true FixNamespaceComments: true
ForEachMacros: ['TRY_CATCH'] ForEachMacros: ['TRY_CATCH']
#QualifierAlignment: Custom #QualifierAlignment: Custom
#QualifierOrder: ['inline', 'static', 'const', 'volatile', 'type'] #QualifierOrder: ['inline', 'static', 'const', 'volatile', 'type']
SpaceAroundPointerQualifiers: After 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: 50 PenaltyBreakBeforeFirstCallParameter: 50
PenaltyBreakComment: 10 PenaltyBreakComment: 10
PenaltyBreakFirstLessLess: 0 PenaltyBreakFirstLessLess: 0
PenaltyBreakString: 10 PenaltyBreakString: 10
PenaltyExcessCharacter: 100 PenaltyExcessCharacter: 100
PenaltyReturnTypeOnItsOwnLine: 60 PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Right PointerAlignment: Right
ReflowComments: false ReflowComments: false
SpacesBeforeTrailingComments: 1 SpacesBeforeTrailingComments: 1
SortIncludes: false SortIncludes: false
TabWidth: 4 TabWidth: 4
UseTab: AlignWithSpaces UseTab: AlignWithSpaces

Loading…
Cancel
Save