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
Standard: Cpp11
UseTab: ForIndentation
TabWidth: 3 TabWidth: 3
IndentWidth: 3 IndentWidth: 3
AccessModifierOffset: -3 AccessModifierOffset: -3
ConstructorInitializerIndentWidth: 0
ContinuationIndentWidth: 3 ContinuationIndentWidth: 3
ColumnLimit: 79 ColumnLimit: 79
ConstructorInitializerIndentWidth: 0
BinPackArguments: false BinPackArguments: false
BinPackParameters: false BinPackParameters: false
AlignAfterOpenBracket: Align AlignAfterOpenBracket: Align
...@@ -14,26 +16,18 @@ AlignConsecutiveDeclarations: true ...@@ -14,26 +16,18 @@ AlignConsecutiveDeclarations: true
AlignOperands: true AlignOperands: true
AlignEscapedNewlines: Right AlignEscapedNewlines: Right
AlignTrailingComments: true AlignTrailingComments: true
PenaltyBreakAssignment: 100 AllowAllArgumentsOnNextLine: false
PenaltyBreakBeforeFirstCallParameter: 19 AllowAllConstructorInitializersOnNextLine: false
PenaltyBreakComment: 300 ConstructorInitializerAllOnOneLineOrOnePerLine: false
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 1000
AllowAllArgumentsOnNextLine: false # clang-format >= 9
AllowAllConstructorInitializersOnNextLine: false # clang-format >= 9
AllowAllParametersOfDeclarationOnNextLine: false AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: false AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: false AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: true AlwaysBreakTemplateDeclarations: Yes
BreakBeforeBraces: Custom BreakBeforeBraces: Custom
BraceWrapping: BraceWrapping:
AfterClass: true AfterClass: true
...@@ -58,41 +52,18 @@ BreakBeforeTernaryOperators: true ...@@ -58,41 +52,18 @@ BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeComma BreakConstructorInitializers: BeforeComma
BreakAfterJavaFieldAnnotations: false BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true BreakStringLiterals: true
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
Cpp11BracedListStyle: true Cpp11BracedListStyle: true
DerivePointerAlignment: false DerivePointerAlignment: false
DisableFormat: false DisableFormat: false
ExperimentalAutoDetectBinPacking: false ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: false FixNamespaceComments: false
ForEachMacros:
- foreach
- Q_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 IndentCaseLabels: false
IndentPPDirectives: None IndentPPDirectives: BeforeHash
IndentWrappedFunctionNames: false IndentWrappedFunctionNames: true
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: true KeepEmptyLinesAtTheStartOfBlocks: true
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1 MaxEmptyLinesToKeep: 1
NamespaceIndentation: All NamespaceIndentation: All
ObjCBinPackProtocolList: Auto
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PointerAlignment: Left PointerAlignment: Left
ReflowComments: true ReflowComments: true
SortIncludes: false SortIncludes: false
...@@ -112,10 +83,22 @@ SpacesInContainerLiterals: false ...@@ -112,10 +83,22 @@ SpacesInContainerLiterals: false
SpacesInCStyleCastParentheses: false SpacesInCStyleCastParentheses: false
SpacesInParentheses: false SpacesInParentheses: false
SpacesInSquareBrackets: false SpacesInSquareBrackets: false
Standard: Cpp11 PenaltyBreakAssignment: 100
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 1000
CommentPragmas: ''
MacroBlockBegin: ''
MacroBlockEnd: ''
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
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