Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VVCSoftware_VTM
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
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
jvet
VVCSoftware_VTM
Commits
839ad6db
Commit
839ad6db
authored
2 years ago
by
Xiang Li
Browse files
Options
Downloads
Plain Diff
Merge branch 'clang-format-update' into 'master'
Update .clang-format file See merge request
!2523
parents
06a9a140
b853e62f
No related branches found
No related tags found
1 merge request
!2523
Update .clang-format file
Pipeline
#8901
passed
2 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.clang-format
+41
-20
41 additions, 20 deletions
.clang-format
with
41 additions
and
20 deletions
.clang-format
+
41
−
20
View file @
839ad6db
---
---
# to be used on clang-format version 14 or later
Language: Cpp
Language: Cpp
# BasedOnStyle: LLVM
AccessModifierOffset: -2
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: true
AlignConsecutiveAssignments: AcrossComments
AlignConsecutiveDeclarations: true
AlignConsecutiveBitFields: AcrossComments
AlignEscapedNewlines: Right
AlignConsecutiveDeclarations: AcrossComments
AlignOperands: true
AlignConsecutiveMacros: AcrossComments
AlignEscapedNewlines: Left
AlignOperands: Align
AlignTrailingComments: true
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine:
true
AllowShortBlocksOnASingleLine:
Always
AllowShortCaseLabelsOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: All
AllowShortLoopsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations:
false
AlwaysBreakTemplateDeclarations:
No
BinPackArguments: true
BinPackArguments: true
BinPackParameters: true
BinPackParameters: true
BraceWrapping:
BraceWrapping:
AfterCaseLabel: true
AfterClass: true
AfterClass: true
AfterControlStatement:
true
AfterControlStatement:
Always
AfterEnum: true
AfterEnum: true
AfterFunction: true
AfterFunction: true
AfterNamespace: true
AfterNamespace: true
AfterObjCDeclaration:
fals
e
AfterObjCDeclaration:
tru
e
AfterStruct: true
AfterStruct: true
AfterUnion: true
AfterUnion: true
AfterExternBlock: true
AfterExternBlock: true
BeforeCatch: true
BeforeCatch: true
BeforeElse: true
BeforeElse: true
BeforeLambdaBody: true
BeforeWhile: false
IndentBraces: false
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
SplitEmptyNamespace: false
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBraces:
Allman
BreakBeforeBraces:
Custom
BreakBeforeInheritanceComma: false
BreakBeforeInheritanceComma: false
BreakInheritanceList: BeforeColon
BreakBeforeTernaryOperators: true
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: true
BreakConstructorInitializers: BeforeComma
BreakConstructorInitializers: BeforeComma
BreakAfterJavaFieldAnnotations: false
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
BreakStringLiterals: true
...
@@ -55,21 +62,30 @@ DerivePointerAlignment: false
...
@@ -55,21 +62,30 @@ DerivePointerAlignment: false
DisableFormat: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
FixNamespaceComments: true
ForEachMacros:
ForEachMacros:
- foreach
- foreach
- Q_FOREACH
- Q_FOREACH
- BOOST_FOREACH
- BOOST_FOREACH
IncludeBlocks: Preserve
IncludeBlocks: Preserve
IncludeCategories:
IncludeCategories:
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 2
Priority: 2
SortPriority: 0
CaseSensitive: false
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
Priority: 3
Priority: 3
SortPriority: 0
CaseSensitive: false
- Regex: '.*'
- Regex: '.*'
Priority: 1
Priority: 1
SortPriority: 0
CaseSensitive: false
IncludeIsMainRegex: '(Test)?$'
IncludeIsMainRegex: '(Test)?$'
IndentCaseLabels: false
IndentCaseLabels: false
IndentCaseBlocks: true
IndentGotoLabels: false
IndentPPDirectives: None
IndentPPDirectives: None
IndentExternBlock: NoIndent
IndentWidth: 2
IndentWidth: 2
IndentWrappedFunctionNames: true
IndentWrappedFunctionNames: true
JavaScriptQuotes: Leave
JavaScriptQuotes: Leave
...
@@ -78,7 +94,7 @@ KeepEmptyLinesAtTheStartOfBlocks: false
...
@@ -78,7 +94,7 @@ KeepEmptyLinesAtTheStartOfBlocks: false
MacroBlockBegin: ''
MacroBlockBegin: ''
MacroBlockEnd: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
MaxEmptyLinesToKeep: 1
NamespaceIndentation:
All
NamespaceIndentation:
None
ObjCBinPackProtocolList: Auto
ObjCBinPackProtocolList: Auto
ObjCBlockIndentWidth: 2
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceAfterProperty: false
...
@@ -90,25 +106,30 @@ PenaltyBreakFirstLessLess: 120
...
@@ -90,25 +106,30 @@ PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment:
Righ
t
PointerAlignment:
Lef
t
ReflowComments: true
ReflowComments: true
SortIncludes: false
SortIncludes: false
SortUsingDeclarations: true
SortUsingDeclarations: true
SpaceAfterCStyleCast: true
SpaceAfterCStyleCast: true
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: false
SpaceAfterTemplateKeyword: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCaseColon: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeParens: ControlStatements
SpaceAroundPointerQualifiers: Default
SpaceBeforeRangeBasedForLoopColon: false
SpaceBeforeRangeBasedForLoopColon: false
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 3
SpacesBeforeTrailingComments: 3
SpacesInAngles: false
SpacesInAngles: false
SpacesInConditionalStatement: false
SpacesInContainerLiterals: true
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpacesInSquareBrackets: false
Standard:
Cpp11
Standard:
c++17
TabWidth: 8
TabWidth: 8
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