Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
6f9c20c3
Unverified
Commit
6f9c20c3
authored
Apr 19, 2024
by
Hongzhi (Steve), Chen
Committed by
GitHub
Apr 19, 2024
Browse files
Update clang (#7319)
Co-authored-by:
Ubuntu
<
ubuntu@ip-172-31-28-63.ap-northeast-1.compute.internal
>
parent
2925cbd4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
35 deletions
+46
-35
.clang-format
.clang-format
+46
-35
No files found.
.clang-format
View file @
6f9c20c3
...
@@ -4,21 +4,40 @@ Language: Cpp
...
@@ -4,21 +4,40 @@ Language: Cpp
AccessModifierOffset: -1
AccessModifierOffset: -1
AlignAfterOpenBracket: AlwaysBreak
AlignAfterOpenBracket: AlwaysBreak
AlignArrayOfStructures: None
AlignArrayOfStructures: None
AlignConsecutiveMacros: None
AlignConsecutiveAssignments:
AlignConsecutiveAssignments: None
Enabled: false
AlignConsecutiveBitFields: None
AcrossEmptyLines: false
AlignConsecutiveDeclarations: None
AcrossComments: false
AlignCompound: false
PadOperators: true
AlignConsecutiveBitFields:
Enabled: false
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: false
PadOperators: false
AlignConsecutiveDeclarations:
Enabled: false
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: false
PadOperators: false
AlignConsecutiveMacros:
Enabled: false
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: false
PadOperators: false
AlignEscapedNewlines: Left
AlignEscapedNewlines: Left
AlignOperands: Align
AlignOperands: Align
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: true
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortEnumsOnASingleLine: true
AllowShortBlocksOnASingleLine: Never
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AllowShortFunctionsOnASingleLine: All
AllowShortLambdasOnASingleLine: All
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLambdasOnASingleLine: All
AllowShortLoopsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakAfterReturnType: None
...
@@ -28,17 +47,18 @@ AttributeMacros:
...
@@ -28,17 +47,18 @@ AttributeMacros:
- __capability
- __capability
BinPackArguments: true
BinPackArguments: true
BinPackParameters: true
BinPackParameters: true
BitFieldColonSpacing: Both
BraceWrapping:
BraceWrapping:
AfterCaseLabel: false
AfterCaseLabel: false
AfterClass: false
AfterClass: false
AfterControlStatement: Never
AfterControlStatement: Never
AfterEnum: false
AfterEnum: false
AfterExternBlock: false
AfterFunction: false
AfterFunction: false
AfterNamespace: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterObjCDeclaration: false
AfterStruct: false
AfterStruct: false
AfterUnion: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeCatch: false
BeforeElse: false
BeforeElse: false
BeforeLambdaBody: false
BeforeLambdaBody: false
...
@@ -47,33 +67,25 @@ BraceWrapping:
...
@@ -47,33 +67,25 @@ BraceWrapping:
SplitEmptyFunction: true
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
SplitEmptyNamespace: true
BreakAfterJavaFieldAnnotations: false
BreakBeforeBinaryOperators: None
BreakBeforeBinaryOperators: None
BreakBeforeConceptDeclarations:
true
BreakBeforeConceptDeclarations:
Always
BreakBeforeBraces: Attach
BreakBeforeBraces: Attach
BreakBeforeInheritanceComma: false
BreakInheritanceList: BeforeColon
BreakBeforeTernaryOperators: true
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
BreakConstructorInitializers: BeforeColon
Break
AfterJavaFieldAnnotations: false
Break
InheritanceList: BeforeColon
BreakStringLiterals: true
BreakStringLiterals: true
ColumnLimit: 80
ColumnLimit: 80
CommentPragmas: '^ IWYU pragma:'
CommentPragmas: '^ IWYU pragma:'
QualifierAlignment: Leave
CompactNamespaces: false
CompactNamespaces: false
ConstructorInitializerIndentWidth: 4
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
Cpp11BracedListStyle: true
DeriveLineEnding: true
DerivePointerAlignment: true
DerivePointerAlignment: true
DisableFormat: false
DisableFormat: false
EmptyLineAfterAccessModifier: Never
EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: LogicalBlock
EmptyLineBeforeAccessModifier: LogicalBlock
ExperimentalAutoDetectBinPacking: false
ExperimentalAutoDetectBinPacking: false
PackConstructorInitializers: NextLine
BasedOnStyle: ''
ConstructorInitializerAllOnOneLineOrOnePerLine: false
AllowAllConstructorInitializersOnNextLine: true
FixNamespaceComments: true
FixNamespaceComments: true
ForEachMacros:
ForEachMacros:
- foreach
- foreach
...
@@ -102,14 +114,15 @@ IncludeCategories:
...
@@ -102,14 +114,15 @@ IncludeCategories:
IncludeIsMainRegex: '([-_](test|unittest))?$'
IncludeIsMainRegex: '([-_](test|unittest))?$'
IncludeIsMainSourceRegex: ''
IncludeIsMainSourceRegex: ''
IndentAccessModifiers: false
IndentAccessModifiers: false
IndentCaseLabels: true
IndentCaseBlocks: false
IndentCaseBlocks: false
IndentCaseLabels: true
IndentExternBlock: AfterExternBlock
IndentGotoLabels: true
IndentGotoLabels: true
IndentPPDirectives: None
IndentPPDirectives: None
IndentExternBlock: AfterExternBlock
IndentRequiresClause: true
IndentRequires: false
IndentWidth: 2
IndentWidth: 2
IndentWrappedFunctionNames: false
IndentWrappedFunctionNames: false
InsertBraces: false
InsertTrailingCommas: None
InsertTrailingCommas: None
JavaScriptQuotes: Leave
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
JavaScriptWrapImports: true
...
@@ -124,6 +137,7 @@ ObjCBlockIndentWidth: 2
...
@@ -124,6 +137,7 @@ ObjCBlockIndentWidth: 2
ObjCBreakBeforeNestedBlockParam: true
ObjCBreakBeforeNestedBlockParam: true
ObjCSpaceAfterProperty: false
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
ObjCSpaceBeforeProtocolList: true
PackConstructorInitializers: NextLine
PenaltyBreakAssignment: 2
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 1
PenaltyBreakBeforeFirstCallParameter: 1
PenaltyBreakComment: 300
PenaltyBreakComment: 300
...
@@ -132,10 +146,11 @@ PenaltyBreakOpenParenthesis: 0
...
@@ -132,10 +146,11 @@ PenaltyBreakOpenParenthesis: 0
PenaltyBreakString: 1000
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 200
PenaltyIndentedWhitespace: 0
PenaltyIndentedWhitespace: 0
PenaltyReturnTypeOnItsOwnLine: 200
PointerAlignment: Left
PointerAlignment: Left
PPIndentWidth: -1
PPIndentWidth: -1
QualifierAlignment: Leave
RawStringFormats:
RawStringFormats:
- Language: Cpp
- Language: Cpp
Delimiters:
Delimiters:
...
@@ -169,14 +184,15 @@ RawStringFormats:
...
@@ -169,14 +184,15 @@ RawStringFormats:
ReferenceAlignment: Pointer
ReferenceAlignment: Pointer
ReflowComments: true
ReflowComments: true
RemoveBracesLLVM: false
RemoveBracesLLVM: false
RequiresClausePosition: OwnLine
SeparateDefinitionBlocks: Leave
SeparateDefinitionBlocks: Leave
ShortNamespaceLines: 1
ShortNamespaceLines: 1
SortIncludes: CaseSensitive
SortIncludes: CaseSensitive
SortJavaStaticImport: Before
SortJavaStaticImport: Before
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceAfterTemplateKeyword: true
SpaceAroundPointerQualifiers: Default
SpaceBeforeAssignmentOperators: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCaseColon: false
SpaceBeforeCaseColon: false
SpaceBeforeCpp11BracedList: false
SpaceBeforeCpp11BracedList: false
...
@@ -190,23 +206,19 @@ SpaceBeforeParensOptions:
...
@@ -190,23 +206,19 @@ SpaceBeforeParensOptions:
AfterFunctionDeclarationName: false
AfterFunctionDeclarationName: false
AfterIfMacros: true
AfterIfMacros: true
AfterOverloadedOperator: false
AfterOverloadedOperator: false
AfterRequiresInClause: false
AfterRequiresInExpression: false
BeforeNonEmptyParentheses: false
BeforeNonEmptyParentheses: false
SpaceAroundPointerQualifiers: Default
SpaceBeforeRangeBasedForLoopColon: true
SpaceBeforeRangeBasedForLoopColon: true
SpaceBeforeSquareBrackets: false
SpaceInEmptyBlock: false
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 2
SpacesBeforeTrailingComments: 2
SpacesInAngles: Never
SpacesInAngles: Never
SpacesInConditionalStatement: false
SpacesInContainerLiterals: true
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInLineCommentPrefix:
SpacesInLineCommentPrefix:
Minimum: 1
Minimum: 1
Maximum: -1
Maximum: -1
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpacesInSquareBrackets: false
SpaceBeforeSquareBrackets: false
BitFieldColonSpacing: Both
Standard: Auto
Standard: Auto
StatementAttributeLikeMacros:
StatementAttributeLikeMacros:
- Q_EMIT
- Q_EMIT
...
@@ -214,13 +226,12 @@ StatementMacros:
...
@@ -214,13 +226,12 @@ StatementMacros:
- Q_UNUSED
- Q_UNUSED
- QT_REQUIRE_VERSION
- QT_REQUIRE_VERSION
TabWidth: 8
TabWidth: 8
UseCRLF: false
UseTab: Never
UseTab: Never
WhitespaceSensitiveMacros:
WhitespaceSensitiveMacros:
- STRINGIZE
- PP_STRINGIZE
- BOOST_PP_STRINGIZE
- BOOST_PP_STRINGIZE
- NS_SWIFT_NAME
- CF_SWIFT_NAME
- CF_SWIFT_NAME
- NS_SWIFT_NAME
- PP_STRINGIZE
- STRINGIZE
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment