Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computing
cbmroot
Commits
8503bd5d
Commit
8503bd5d
authored
4 years ago
by
Administrator
Browse files
Options
Downloads
Patches
Plain Diff
Set column limit to 120 characters
Add also some more new parameters. Some hopefully minor changes.
parent
cc63242c
No related branches found
No related tags found
1 merge request
!233
Fix clang format
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.clang-format
+64
-11
64 additions, 11 deletions
.clang-format
with
64 additions
and
11 deletions
.clang-format
+
64
−
11
View file @
8503bd5d
---
---
AccessModifierOffset: -2
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignAfterOpenBracket: Align
#AlignConsecutiveMacros: true
AlignConsecutiveAssignments: true
AlignConsecutiveAssignments: true
AlignConsecutiveBitFields: true
AlignConsecutiveDeclarations: false
AlignConsecutiveDeclarations: false
#AlignConsecutiveMacros: true
AlignEscapedNewlines: Right
AlignEscapedNewlines: Right
AlignOperands: true
AlignOperands: true
AlignTrailingComments: true
AlignTrailingComments: true
#AllowAllArgumentsOnNextLine: true
#AllowAllConstructorInitializersOnNextLine: true
AllowAllArgumentsOnNextLine: false
AllowAllConstructorInitializersOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: true
AllowShortBlocksOnASingleLine: Always
AllowShortCaseLabelsOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: true
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine:
true
AllowShortIfStatementsOnASingleLine:
Always
#
AllowShortLambdasOnASingleLine: All
AllowShortLambdasOnASingleLine: All
AllowShortLoopsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
#AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: true
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: false
BinPackArguments: false
BinPackParameters: false
BinPackParameters: false
# Discuss
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBraces: Attach
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: Never
AfterEnum: false
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: true
BeforeElse: true
BeforeLambdaBody: false
BeforeWhile: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeTernaryOperators: true
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeComma
BreakConstructorInitializers: BeforeComma
BreakInheritanceList: AfterColon
BreakInheritanceList: AfterColon
ColumnLimit: 80
#Discuss
BreakStringLiterals: true
ColumnLimit: 120
CompactNamespaces: false
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 2
ConstructorInitializerIndentWidth: 2
ContinuationIndentWidth: 2
ContinuationIndentWidth: 2
Cpp11BracedListStyle: true
Cpp11BracedListStyle: true
DeriveLineEnding: false
DerivePointerAlignment: false
DerivePointerAlignment: false
DisableFormat: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
FixNamespaceComments: true
# Implement ordering of include statements
IncludeBlocks: Regroup
IncludeBlocks: Regroup
IncludeCategories:
IncludeCategories:
- Regex: '^("|<)Cbm'
- Regex: '^("|<)Cbm'
...
@@ -53,21 +90,30 @@ IncludeCategories:
...
@@ -53,21 +90,30 @@ IncludeCategories:
Priority: 6
Priority: 6
- Regex: '.*'
- Regex: '.*'
Priority: 7
Priority: 7
IndentCaseBlocks: false
IndentCaseLabels: true
IndentCaseLabels: true
IndentExternBlock: Indent
IndentGotoLabels: false
IndentPPDirectives: None
IndentPPDirectives: None
IndentWidth: 2
IndentWidth: 2
IndentWrappedFunctionNames: false
IndentWrappedFunctionNames: false
KeepEmptyLinesAtTheStartOfBlocks: true
KeepEmptyLinesAtTheStartOfBlocks: true
Language: Cpp
Language: Cpp
MaxEmptyLinesToKeep: 2
MaxEmptyLinesToKeep: 2
NamespaceIndentation: All
NamespaceIndentation: All
ObjCBinPackProtocolList: Auto
ObjCBinPackProtocolList: Auto
ObjCBlockIndentWidth: 2
ObjCBlockIndentWidth: 2
#Discuss Penalties
PenaltyBreakAssignment: 2
PenaltyBreakAssignment: 2
PointerAlignment: Left
PointerAlignment: Left
ReflowComments: false
ReflowComments: false
SortIncludes: true
SortIncludes: true
SortUsingDeclarations: true
SortUsingDeclarations: true
SpaceAfterCStyleCast: true
SpaceAfterCStyleCast: true
#SpaceAfterLogicalNot: true
#SpaceAfterLogicalNot: true
SpaceAfterTemplateKeyword: false
SpaceAfterTemplateKeyword: false
...
@@ -77,13 +123,20 @@ SpaceBeforeCtorInitializerColon: true
...
@@ -77,13 +123,20 @@ SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceBeforeRangeBasedForLoopColon: true
SpaceBeforeSquareBrackets: false
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 2
SpacesBeforeTrailingComments: 2
SpacesInAngles: false
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInCStyleCastParentheses: false
SpacesInConditionalStatement: false
SpacesInContainerLiterals: false
SpacesInParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpacesInSquareBrackets: false
Standard: c++11
TabWidth: 8
TabWidth: 8
UseCRLF: false
UseTab: Never
UseTab: Never
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment