Skip to content
Snippets Groups Projects
Commit 89f1c313 authored by calrama's avatar calrama
Browse files

update format config

parent e1202c96
No related branches found
No related tags found
No related merge requests found
--- ---
Language: Cpp Language: Cpp
TabWidth: 3 Standard: Cpp11
IndentWidth: 3 UseTab: ForIndentation
AccessModifierOffset: -3 TabWidth: 3
ConstructorInitializerIndentWidth: 0 IndentWidth: 3
ContinuationIndentWidth: 3 AccessModifierOffset: -3
ColumnLimit: 79 ContinuationIndentWidth: 3
BinPackArguments: false ColumnLimit: 79
BinPackParameters: false ConstructorInitializerIndentWidth: 0
AlignAfterOpenBracket: Align BinPackArguments: false
AlignConsecutiveAssignments: true BinPackParameters: false
AlignConsecutiveDeclarations: true AlignAfterOpenBracket: Align
AlignOperands: true AlignConsecutiveAssignments: true
AlignEscapedNewlines: Right AlignConsecutiveDeclarations: true
AlignTrailingComments: true AlignOperands: true
PenaltyBreakAssignment: 100 AlignEscapedNewlines: Right
PenaltyBreakBeforeFirstCallParameter: 19 AlignTrailingComments: true
PenaltyBreakComment: 300 AllowAllArgumentsOnNextLine: false
PenaltyBreakFirstLessLess: 120 AllowAllConstructorInitializersOnNextLine: false
PenaltyBreakString: 1000 ConstructorInitializerAllOnOneLineOrOnePerLine: false
PenaltyBreakTemplateDeclaration: 10 AllowAllParametersOfDeclarationOnNextLine: false
PenaltyExcessCharacter: 1000000 AllowShortBlocksOnASingleLine: false
PenaltyReturnTypeOnItsOwnLine: 1000 AllowShortCaseLabelsOnASingleLine: false
AllowAllArgumentsOnNextLine: false # clang-format >= 9 AllowShortFunctionsOnASingleLine: None
AllowAllConstructorInitializersOnNextLine: false # clang-format >= 9 AllowShortIfStatementsOnASingleLine: Never
AllowAllParametersOfDeclarationOnNextLine: false AllowShortLoopsOnASingleLine: false
AllowShortBlocksOnASingleLine: false AlwaysBreakAfterReturnType: None
AllowShortCaseLabelsOnASingleLine: false AlwaysBreakBeforeMultilineStrings: true
AllowShortFunctionsOnASingleLine: All AlwaysBreakTemplateDeclarations: Yes
AllowShortIfStatementsOnASingleLine: false BreakBeforeBraces: Custom
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: true
BreakBeforeBraces: Custom
BraceWrapping: BraceWrapping:
AfterClass: true AfterClass: true
AfterControlStatement: false AfterControlStatement: false
AfterEnum: false AfterEnum: false
AfterFunction: true AfterFunction: true
AfterNamespace: true AfterNamespace: true
AfterObjCDeclaration: false AfterObjCDeclaration: false
AfterStruct: true AfterStruct: true
AfterUnion: false AfterUnion: false
AfterExternBlock: false AfterExternBlock: false
BeforeCatch: false BeforeCatch: false
BeforeElse: false BeforeElse: false
IndentBraces: false IndentBraces: false
SplitEmptyFunction: true SplitEmptyFunction: true
SplitEmptyRecord: true SplitEmptyRecord: true
SplitEmptyNamespace: true SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None BreakBeforeBinaryOperators: None
BreakBeforeInheritanceComma: false BreakBeforeInheritanceComma: false
BreakInheritanceList: BeforeColon BreakInheritanceList: BeforeColon
BreakBeforeTernaryOperators: true BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeComma BreakConstructorInitializers: BeforeComma
BreakAfterJavaFieldAnnotations: false BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true BreakStringLiterals: true
CommentPragmas: '^ IWYU pragma:' CompactNamespaces: false
CompactNamespaces: false Cpp11BracedListStyle: true
ConstructorInitializerAllOnOneLineOrOnePerLine: false DerivePointerAlignment: false
Cpp11BracedListStyle: true DisableFormat: false
DerivePointerAlignment: false ExperimentalAutoDetectBinPacking: false
DisableFormat: false FixNamespaceComments: false
ExperimentalAutoDetectBinPacking: false IndentCaseLabels: false
FixNamespaceComments: false IndentPPDirectives: BeforeHash
IndentWrappedFunctionNames: true
KeepEmptyLinesAtTheStartOfBlocks: true
MaxEmptyLinesToKeep: 1
NamespaceIndentation: All
PointerAlignment: Left
ReflowComments: true
SortIncludes: false
SortUsingDeclarations: true
SpaceAfterCStyleCast: true
SpaceAfterTemplateKeyword: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInContainerLiterals: false
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
PenaltyBreakAssignment: 100
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 1000
CommentPragmas: ''
MacroBlockBegin: ''
MacroBlockEnd: ''
ForEachMacros: ForEachMacros:
- foreach - foreach
- Q_FOREACH - Q_FOREACH
- BOOST_FOREACH - BOOST_FOREACH
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: false
IndentPPDirectives: None
IndentWrappedFunctionNames: false
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: true
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: All
ObjCBinPackProtocolList: Auto
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PointerAlignment: Left
ReflowComments: true
SortIncludes: false
SortUsingDeclarations: true
SpaceAfterCStyleCast: true
SpaceAfterTemplateKeyword: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInContainerLiterals: false
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp11
StatementMacros: StatementMacros:
- Q_UNUSED - Q_UNUSED
- QT_REQUIRE_VERSION - QT_REQUIRE_VERSION
UseTab: ForIndentation
... ...
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment