mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 15:49:25 +01:00
Add new clang-format config.
This commit is contained in:
parent
ac267a2940
commit
e901533298
@ -1,55 +1,74 @@
|
|||||||
---
|
---
|
||||||
Language: Cpp
|
Language: Cpp
|
||||||
BasedOnStyle: LLVM
|
AccessModifierOffset: -2
|
||||||
#AccessModifierOffset: -2
|
AlignAfterOpenBracket: Align
|
||||||
#ConstructorInitializerIndentWidth: 4
|
AlignConsecutiveAssignments: false
|
||||||
#AlignEscapedNewlinesLeft: false
|
AlignConsecutiveDeclarations: false
|
||||||
#AlignTrailingComments: true
|
AlignEscapedNewlinesLeft: false
|
||||||
#AllowAllParametersOfDeclarationOnNextLine: true
|
AlignOperands: true
|
||||||
#AllowShortBlocksOnASingleLine: false
|
AlignTrailingComments: true
|
||||||
#AllowShortIfStatementsOnASingleLine: false
|
AllowAllParametersOfDeclarationOnNextLine: true
|
||||||
#AllowShortLoopsOnASingleLine: false
|
AllowShortBlocksOnASingleLine: false
|
||||||
|
AllowShortCaseLabelsOnASingleLine: false
|
||||||
AllowShortFunctionsOnASingleLine: Inline
|
AllowShortFunctionsOnASingleLine: Inline
|
||||||
#AlwaysBreakTemplateDeclarations: false
|
AllowShortIfStatementsOnASingleLine: false
|
||||||
#AlwaysBreakBeforeMultilineStrings: false
|
AllowShortLoopsOnASingleLine: false
|
||||||
#BreakBeforeBinaryOperators: false
|
AlwaysBreakAfterDefinitionReturnType: None
|
||||||
#BreakBeforeTernaryOperators: true
|
AlwaysBreakAfterReturnType: None
|
||||||
BreakConstructorInitializersBeforeComma: true
|
AlwaysBreakBeforeMultilineStrings: false
|
||||||
#BinPackParameters: true
|
AlwaysBreakTemplateDeclarations: true
|
||||||
ColumnLimit: 120
|
BinPackArguments: true
|
||||||
#ConstructorInitializerAllOnOneLineOrOnePerLine: false
|
BinPackParameters: true
|
||||||
#DerivePointerBinding: false
|
BreakBeforeBinaryOperators: None
|
||||||
#ExperimentalAutoDetectBinPacking: false
|
|
||||||
#IndentCaseLabels: false
|
|
||||||
#MaxEmptyLinesToKeep: 1
|
|
||||||
#KeepEmptyLinesAtTheStartOfBlocks: true
|
|
||||||
#NamespaceIndentation: None
|
|
||||||
#ObjCSpaceAfterProperty: false
|
|
||||||
#ObjCSpaceBeforeProtocolList: true
|
|
||||||
#PenaltyBreakBeforeFirstCallParameter: 19
|
|
||||||
#PenaltyBreakComment: 300
|
|
||||||
#PenaltyBreakString: 1000
|
|
||||||
#PenaltyBreakFirstLessLess: 120
|
|
||||||
#PenaltyExcessCharacter: 1000000
|
|
||||||
#PenaltyReturnTypeOnItsOwnLine: 60
|
|
||||||
#PointerBindsToType: false
|
|
||||||
#SpacesBeforeTrailingComments: 1
|
|
||||||
#Cpp11BracedListStyle: true
|
|
||||||
#Standard: Cpp11
|
|
||||||
IndentWidth: 4
|
|
||||||
TabWidth: 4
|
|
||||||
UseTab: ForIndentation
|
|
||||||
BreakBeforeBraces: Allman
|
BreakBeforeBraces: Allman
|
||||||
#IndentFunctionDeclarationAfterType: false
|
BreakBeforeTernaryOperators: false
|
||||||
#SpacesInParentheses: false
|
BreakConstructorInitializersBeforeComma: false
|
||||||
#SpacesInAngles: false
|
ColumnLimit: 100
|
||||||
#SpaceInEmptyParentheses: false
|
CommentPragmas: '^ (IWYU pragma:|NOLINT)'
|
||||||
#SpacesInCStyleCastParentheses: false
|
ConstructorInitializerAllOnOneLineOrOnePerLine: false
|
||||||
#SpacesInContainerLiterals: true
|
ConstructorInitializerIndentWidth: 4
|
||||||
#SpaceBeforeAssignmentOperators: true
|
ContinuationIndentWidth: 4
|
||||||
#ContinuationIndentWidth: 4
|
Cpp11BracedListStyle: true
|
||||||
#CommentPragmas: '^ IWYU pragma:'
|
DerivePointerAlignment: false
|
||||||
#ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
|
DisableFormat: false
|
||||||
#SpaceBeforeParens: ControlStatements
|
ForEachMacros: []
|
||||||
|
IncludeCategories:
|
||||||
|
- Regex: '^<'
|
||||||
|
Priority: 1
|
||||||
|
- Regex: '^"'
|
||||||
|
Priority: 2
|
||||||
|
IndentCaseLabels: false
|
||||||
|
IndentWidth: 2
|
||||||
|
IndentWrappedFunctionNames: false
|
||||||
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
||||||
|
MacroBlockBegin: ''
|
||||||
|
MacroBlockEnd: ''
|
||||||
|
MaxEmptyLinesToKeep: 1
|
||||||
|
NamespaceIndentation: None
|
||||||
|
ObjCBlockIndentWidth: 2
|
||||||
|
ObjCSpaceAfterProperty: false
|
||||||
|
ObjCSpaceBeforeProtocolList: true
|
||||||
|
PenaltyBreakBeforeFirstCallParameter: 19
|
||||||
|
PenaltyBreakComment: 300
|
||||||
|
PenaltyBreakFirstLessLess: 120
|
||||||
|
PenaltyBreakString: 1000
|
||||||
|
PenaltyExcessCharacter: 1000000
|
||||||
|
PenaltyReturnTypeOnItsOwnLine: 60
|
||||||
|
PointerAlignment: Left
|
||||||
|
ReflowComments: true
|
||||||
|
SortIncludes: true
|
||||||
|
SpaceAfterCStyleCast: false
|
||||||
|
SpaceBeforeAssignmentOperators: true
|
||||||
|
SpaceBeforeParens: ControlStatements
|
||||||
|
SpaceInEmptyParentheses: false
|
||||||
|
SpacesBeforeTrailingComments: 2
|
||||||
|
SpacesInAngles: false
|
||||||
|
SpacesInContainerLiterals: true
|
||||||
|
SpacesInCStyleCastParentheses: false
|
||||||
|
SpacesInParentheses: false
|
||||||
|
SpacesInSquareBrackets: false
|
||||||
|
Standard: Cpp11
|
||||||
|
TabWidth: 2
|
||||||
|
UseTab: Never
|
||||||
...
|
...
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user