Updated clang-format config
This commit is contained in:
parent
a73147283c
commit
65d052c936
1 changed files with 118 additions and 61 deletions
|
@ -1,61 +1,118 @@
|
||||||
|
Language: Cpp
|
||||||
Language: Cpp
|
AccessModifierOffset: -4
|
||||||
IndentWidth: 4
|
AlignAfterOpenBracket: Align
|
||||||
AccessModifierOffset: -4
|
AlignConsecutiveAssignments: false
|
||||||
ColumnLimit: 100
|
AlignConsecutiveDeclarations: false
|
||||||
UseTab: ForIndentation
|
AlignEscapedNewlines: Left
|
||||||
TabWidth: 4
|
AlignOperands: false
|
||||||
|
AlignTrailingComments: true
|
||||||
SortIncludes: false
|
AllowAllParametersOfDeclarationOnNextLine: true
|
||||||
|
AllowShortBlocksOnASingleLine: false
|
||||||
BreakBeforeBinaryOperators: NonAssignment
|
AllowShortCaseLabelsOnASingleLine: false
|
||||||
|
AllowShortFunctionsOnASingleLine: None
|
||||||
BreakBeforeBraces: Custom
|
AllowShortIfStatementsOnASingleLine: false
|
||||||
BraceWrapping:
|
AllowShortLoopsOnASingleLine: false
|
||||||
AfterClass: true
|
AlwaysBreakAfterDefinitionReturnType: None
|
||||||
AfterStruct: true
|
AlwaysBreakAfterReturnType: None
|
||||||
AfterUnion: true
|
AlwaysBreakBeforeMultilineStrings: true
|
||||||
AfterFunction: true
|
AlwaysBreakTemplateDeclarations: Yes
|
||||||
AfterEnum: true
|
BinPackArguments: true
|
||||||
AfterNamespace: false
|
BinPackParameters: true
|
||||||
AfterControlStatement: true
|
BraceWrapping:
|
||||||
BeforeElse: true
|
AfterClass: true
|
||||||
BeforeCatch: true
|
AfterControlStatement: true
|
||||||
|
AfterEnum: true
|
||||||
KeepEmptyLinesAtTheStartOfBlocks: false
|
AfterFunction: true
|
||||||
MaxEmptyLinesToKeep: 1
|
AfterNamespace: false
|
||||||
Standard: Auto
|
AfterObjCDeclaration: false
|
||||||
|
AfterStruct: true
|
||||||
IndentCaseLabels: true
|
AfterUnion: true
|
||||||
|
AfterExternBlock: false
|
||||||
BinPackArguments: true
|
BeforeCatch: true
|
||||||
BinPackParameters: true
|
BeforeElse: true
|
||||||
|
IndentBraces: false
|
||||||
AllowShortFunctionsOnASingleLine: false
|
SplitEmptyFunction: true
|
||||||
|
SplitEmptyRecord: true
|
||||||
NamespaceIndentation: Inner
|
SplitEmptyNamespace: true
|
||||||
|
BreakBeforeBinaryOperators: NonAssignment
|
||||||
ReflowComments: false
|
BreakBeforeBraces: Custom
|
||||||
PenaltyBreakComment: 1000000
|
BreakBeforeInheritanceComma: false
|
||||||
|
BreakInheritanceList: BeforeComma
|
||||||
AllowAllParametersOfDeclarationOnNextLine: true
|
BreakBeforeTernaryOperators: true
|
||||||
|
BreakConstructorInitializersBeforeComma: false
|
||||||
AlwaysBreakTemplateDeclarations: Yes
|
BreakConstructorInitializers: BeforeComma
|
||||||
AlwaysBreakBeforeMultilineStrings: true
|
BreakAfterJavaFieldAnnotations: false
|
||||||
|
BreakStringLiterals: true
|
||||||
SpaceAfterTemplateKeyword: false
|
ColumnLimit: 100
|
||||||
SpaceBeforeParens: ControlStatements
|
CommentPragmas: '^ IWYU pragma:'
|
||||||
|
CompactNamespaces: true
|
||||||
BreakConstructorInitializers: BeforeComma
|
ConstructorInitializerAllOnOneLineOrOnePerLine: false
|
||||||
BreakInheritanceList: BeforeComma
|
ConstructorInitializerIndentWidth: 4
|
||||||
|
ContinuationIndentWidth: 4
|
||||||
CompactNamespaces: true
|
Cpp11BracedListStyle: true
|
||||||
|
DerivePointerAlignment: false
|
||||||
FixNamespaceComments: false
|
DisableFormat: false
|
||||||
|
ExperimentalAutoDetectBinPacking: false
|
||||||
AlignTrailingComments: true
|
FixNamespaceComments: false
|
||||||
|
ForEachMacros:
|
||||||
|
- foreach
|
||||||
AllowShortIfStatementsOnASingleLine: false
|
- Q_FOREACH
|
||||||
AllowShortLoopsOnASingleLine: false
|
- BOOST_FOREACH
|
||||||
AllowShortFunctionsOnASingleLine: false
|
IncludeBlocks: Preserve
|
||||||
|
IncludeCategories:
|
||||||
|
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
|
||||||
|
Priority: 2
|
||||||
|
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
|
||||||
|
Priority: 3
|
||||||
|
- Regex: '.*'
|
||||||
|
Priority: 1
|
||||||
|
IncludeIsMainRegex: '(Test)?$'
|
||||||
|
IndentCaseLabels: true
|
||||||
|
IndentPPDirectives: None
|
||||||
|
IndentWidth: 4
|
||||||
|
IndentWrappedFunctionNames: false
|
||||||
|
JavaScriptQuotes: Leave
|
||||||
|
JavaScriptWrapImports: true
|
||||||
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
||||||
|
|
||||||
|
MacroBlockBegin: '^(BEGIN|IMPLEMENT)_.*_MAP$'
|
||||||
|
|
||||||
|
MacroBlockEnd: '^END_.*_MAP$'
|
||||||
|
|
||||||
|
MaxEmptyLinesToKeep: 1
|
||||||
|
NamespaceIndentation: Inner
|
||||||
|
ObjCBinPackProtocolList: Auto
|
||||||
|
ObjCBlockIndentWidth: 2
|
||||||
|
ObjCSpaceAfterProperty: false
|
||||||
|
ObjCSpaceBeforeProtocolList: true
|
||||||
|
PenaltyBreakAssignment: 2
|
||||||
|
PenaltyBreakBeforeFirstCallParameter: 19
|
||||||
|
PenaltyBreakComment: 1000000
|
||||||
|
PenaltyBreakFirstLessLess: 120
|
||||||
|
PenaltyBreakString: 1000
|
||||||
|
PenaltyBreakTemplateDeclaration: 10
|
||||||
|
PenaltyExcessCharacter: 1000000
|
||||||
|
PenaltyReturnTypeOnItsOwnLine: 60
|
||||||
|
PointerAlignment: Left
|
||||||
|
ReflowComments: false
|
||||||
|
SortIncludes: false
|
||||||
|
SortUsingDeclarations: false
|
||||||
|
SpaceAfterCStyleCast: false
|
||||||
|
SpaceAfterTemplateKeyword: false
|
||||||
|
SpaceBeforeAssignmentOperators: true
|
||||||
|
SpaceBeforeCpp11BracedList: false
|
||||||
|
SpaceBeforeCtorInitializerColon: true
|
||||||
|
SpaceBeforeInheritanceColon: true
|
||||||
|
SpaceBeforeParens: ControlStatements
|
||||||
|
SpaceBeforeRangeBasedForLoopColon: true
|
||||||
|
SpaceInEmptyParentheses: false
|
||||||
|
SpacesBeforeTrailingComments: 1
|
||||||
|
SpacesInAngles: false
|
||||||
|
SpacesInContainerLiterals: true
|
||||||
|
SpacesInCStyleCastParentheses: false
|
||||||
|
SpacesInParentheses: false
|
||||||
|
SpacesInSquareBrackets: false
|
||||||
|
Standard: Auto
|
||||||
|
TabWidth: 4
|
||||||
|
UseTab: Never
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue