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
2925cbd4
Unverified
Commit
2925cbd4
authored
Apr 19, 2024
by
Hongzhi (Steve), Chen
Committed by
GitHub
Apr 19, 2024
Browse files
Revert "[Misc] Update clang-format." (#7322)
parent
afcd8ff0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
89 deletions
+35
-89
.clang-format
.clang-format
+35
-89
No files found.
.clang-format
View file @
2925cbd4
...
@@ -4,54 +4,21 @@ Language: Cpp
...
@@ -4,54 +4,21 @@ Language: Cpp
AccessModifierOffset: -1
AccessModifierOffset: -1
AlignAfterOpenBracket: AlwaysBreak
AlignAfterOpenBracket: AlwaysBreak
AlignArrayOfStructures: None
AlignArrayOfStructures: None
AlignConsecutiveAssignments:
AlignConsecutiveMacros: None
Enabled: false
AlignConsecutiveAssignments: None
AcrossEmptyLines: false
AlignConsecutiveBitFields: None
AcrossComments: false
AlignConsecutiveDeclarations: None
AlignCompound: false
AlignFunctionPointers: false
PadOperators: true
AlignConsecutiveBitFields:
Enabled: false
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: false
AlignFunctionPointers: false
PadOperators: false
AlignConsecutiveDeclarations:
Enabled: false
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: false
AlignFunctionPointers: false
PadOperators: false
AlignConsecutiveMacros:
Enabled: false
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: false
AlignFunctionPointers: false
PadOperators: false
AlignConsecutiveShortCaseStatements:
Enabled: false
AcrossEmptyLines: false
AcrossComments: false
AlignCaseColons: false
AlignEscapedNewlines: Left
AlignEscapedNewlines: Left
AlignOperands: Align
AlignOperands: Align
AlignTrailingComments:
AlignTrailingComments: true
Kind: Always
OverEmptyLines: 0
AllowAllArgumentsOnNextLine: true
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
Allow
BreakBeforeNoexceptSpecifier: Never
Allow
ShortEnumsOnASingleLine: true
AllowShortBlocksOnASingleLine: Never
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortCompoundRequirementOnASingleLine: true
AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLambdasOnASingleLine: All
AllowShortLambdasOnASingleLine: All
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLoopsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakAfterReturnType: None
...
@@ -61,18 +28,17 @@ AttributeMacros:
...
@@ -61,18 +28,17 @@ 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
...
@@ -81,29 +47,33 @@ BraceWrapping:
...
@@ -81,29 +47,33 @@ BraceWrapping:
SplitEmptyFunction: true
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
SplitEmptyNamespace: true
BreakAdjacentStringLiterals: true
BreakAfterAttributes: Leave
BreakAfterJavaFieldAnnotations: false
BreakArrays: true
BreakBeforeBinaryOperators: None
BreakBeforeBinaryOperators: None
BreakBeforeConceptDeclarations:
Always
BreakBeforeConceptDeclarations:
true
BreakBeforeBraces: Attach
BreakBeforeBraces: Attach
BreakBeforeInlineASMColon: OnlyMultiline
BreakBeforeInheritanceComma: false
BreakInheritanceList: BeforeColon
BreakBeforeTernaryOperators: true
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
BreakConstructorInitializers: BeforeColon
Break
InheritanceList: BeforeColon
Break
AfterJavaFieldAnnotations: false
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
...
@@ -132,30 +102,19 @@ IncludeCategories:
...
@@ -132,30 +102,19 @@ IncludeCategories:
IncludeIsMainRegex: '([-_](test|unittest))?$'
IncludeIsMainRegex: '([-_](test|unittest))?$'
IncludeIsMainSourceRegex: ''
IncludeIsMainSourceRegex: ''
IndentAccessModifiers: false
IndentAccessModifiers: false
IndentCaseBlocks: false
IndentCaseLabels: true
IndentCaseLabels: true
Indent
Extern
Block:
AfterExternBlock
Indent
Case
Block
s
:
false
IndentGotoLabels: true
IndentGotoLabels: true
IndentPPDirectives: None
IndentPPDirectives: None
IndentRequiresClause: true
IndentExternBlock: AfterExternBlock
IndentRequires: false
IndentWidth: 2
IndentWidth: 2
IndentWrappedFunctionNames: false
IndentWrappedFunctionNames: false
InsertBraces: false
InsertNewlineAtEOF: false
InsertTrailingCommas: None
InsertTrailingCommas: None
IntegerLiteralSeparator:
Binary: 0
BinaryMinDigits: 0
Decimal: 0
DecimalMinDigits: 0
Hex: 0
HexMinDigits: 0
JavaScriptQuotes: Leave
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: false
KeepEmptyLinesAtTheStartOfBlocks: false
KeepEmptyLinesAtEOF: false
LambdaBodyIndentation: Signature
LambdaBodyIndentation: Signature
LineEnding: DeriveLF
MacroBlockBegin: ''
MacroBlockBegin: ''
MacroBlockEnd: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
MaxEmptyLinesToKeep: 1
...
@@ -165,21 +124,18 @@ ObjCBlockIndentWidth: 2
...
@@ -165,21 +124,18 @@ 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
PenaltyBreakFirstLessLess: 120
PenaltyBreakFirstLessLess: 120
PenaltyBreakOpenParenthesis: 0
PenaltyBreakOpenParenthesis: 0
PenaltyBreakScopeResolution: 500
PenaltyBreakString: 1000
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyExcessCharacter: 1000000
PenaltyIndentedWhitespace: 0
PenaltyReturnTypeOnItsOwnLine: 200
PenaltyReturnTypeOnItsOwnLine: 200
PenaltyIndentedWhitespace: 0
PointerAlignment: Left
PointerAlignment: Left
PPIndentWidth: -1
PPIndentWidth: -1
QualifierAlignment: Leave
RawStringFormats:
RawStringFormats:
- Language: Cpp
- Language: Cpp
Delimiters:
Delimiters:
...
@@ -213,26 +169,19 @@ RawStringFormats:
...
@@ -213,26 +169,19 @@ RawStringFormats:
ReferenceAlignment: Pointer
ReferenceAlignment: Pointer
ReflowComments: true
ReflowComments: true
RemoveBracesLLVM: false
RemoveBracesLLVM: false
RemoveParentheses: Leave
RemoveSemicolon: false
RequiresClausePosition: OwnLine
RequiresExpressionIndentation: OuterScope
SeparateDefinitionBlocks: Leave
SeparateDefinitionBlocks: Leave
ShortNamespaceLines: 1
ShortNamespaceLines: 1
SkipMacroDefinitionBody: false
SortIncludes: CaseSensitive
SortIncludes: CaseSensitive
SortJavaStaticImport: Before
SortJavaStaticImport: Before
SortUsingDeclarations:
LexicographicNumeric
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
SpaceBeforeCtorInitializerColon: true
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeJsonColon: false
SpaceBeforeParens: ControlStatements
SpaceBeforeParens: ControlStatements
SpaceBeforeParensOptions:
SpaceBeforeParensOptions:
AfterControlStatements: true
AfterControlStatements: true
...
@@ -241,26 +190,23 @@ SpaceBeforeParensOptions:
...
@@ -241,26 +190,23 @@ SpaceBeforeParensOptions:
AfterFunctionDeclarationName: false
AfterFunctionDeclarationName: false
AfterIfMacros: true
AfterIfMacros: true
AfterOverloadedOperator: false
AfterOverloadedOperator: false
AfterPlacementOperator: true
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
SpacesInParens: Never
SpacesInParentheses: false
SpacesInParensOptions:
InCStyleCasts: false
InConditionalStatements: false
InEmptyParentheses: false
Other: false
SpacesInSquareBrackets: false
SpacesInSquareBrackets: false
SpaceBeforeSquareBrackets: false
BitFieldColonSpacing: Both
Standard: Auto
Standard: Auto
StatementAttributeLikeMacros:
StatementAttributeLikeMacros:
- Q_EMIT
- Q_EMIT
...
@@ -268,13 +214,13 @@ StatementMacros:
...
@@ -268,13 +214,13 @@ StatementMacros:
- Q_UNUSED
- Q_UNUSED
- QT_REQUIRE_VERSION
- QT_REQUIRE_VERSION
TabWidth: 8
TabWidth: 8
UseCRLF: false
UseTab: Never
UseTab: Never
VerilogBreakBetweenInstancePorts: true
WhitespaceSensitiveMacros:
WhitespaceSensitiveMacros:
- STRINGIZE
- PP_STRINGIZE
- BOOST_PP_STRINGIZE
- BOOST_PP_STRINGIZE
- CF_SWIFT_NAME
- NS_SWIFT_NAME
- NS_SWIFT_NAME
- PP_STRINGIZE
- CF_SWIFT_NAME
- 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