Clang-format

Created Diff never expires
49 removals
Lines
Total
Removed
Words
Total
Removed
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
246 lines
58 additions
Lines
Total
Added
Words
Total
Added
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
256 lines
---
---
Language: Cpp
Language: Cpp
AccessModifierOffset: -4
AccessModifierOffset: -4
AlignAfterOpenBracket: BlockIndent
AlignAfterOpenBracket: BlockIndent
AlignArrayOfStructures: None
AlignArrayOfStructures: None
AlignConsecutiveAssignments:
AlignConsecutiveAssignments:
Enabled: false
Enabled: false
AcrossEmptyLines: false
AcrossEmptyLines: false
AcrossComments: false
AcrossComments: false
AlignCompound: false
AlignCompound: false
AlignFunctionPointers: false
AlignFunctionPointers: false
PadOperators: true
PadOperators: true
AlignConsecutiveBitFields:
AlignConsecutiveBitFields:
Enabled: false
Enabled: false
AcrossEmptyLines: false
AcrossEmptyLines: false
AcrossComments: false
AcrossComments: false
AlignCompound: false
AlignCompound: false
AlignFunctionPointers: false
AlignFunctionPointers: false
PadOperators: false
PadOperators: true
AlignConsecutiveDeclarations:
AlignConsecutiveDeclarations:
Enabled: false
Enabled: false
AcrossEmptyLines: false
AcrossEmptyLines: false
AcrossComments: false
AcrossComments: false
AlignCompound: false
AlignCompound: false
AlignFunctionPointers: false
AlignFunctionPointers: false
PadOperators: false
PadOperators: true
AlignConsecutiveMacros:
AlignConsecutiveMacros:
Enabled: false
Enabled: false
AcrossEmptyLines: false
AcrossEmptyLines: false
AcrossComments: false
AcrossComments: false
AlignCompound: false
AlignCompound: false
AlignFunctionPointers: false
AlignFunctionPointers: false
PadOperators: false
PadOperators: true
AlignConsecutiveShortCaseStatements:
AlignConsecutiveShortCaseStatements:
Enabled: false
Enabled: false
AcrossEmptyLines: false
AcrossEmptyLines: false
AcrossComments: false
AcrossComments: false
AlignCaseColons: false
AlignCaseColons: false
AlignEscapedNewlines: Right
AlignEscapedNewlines: Left
AlignOperands: Align
AlignOperands: DontAlign
AlignTrailingComments:
AlignTrailingComments:
Kind: Always
Kind: Never
OverEmptyLines: 1
OverEmptyLines: 0
AllowAllArgumentsOnNextLine: true
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowBreakBeforeNoexceptSpecifier: Never
AllowBreakBeforeNoexceptSpecifier: Never
AllowShortBlocksOnASingleLine: Never
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortCompoundRequirementOnASingleLine: true
AllowShortCompoundRequirementOnASingleLine: true
AllowShortEnumsOnASingleLine: true
AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: Never
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: All
AllowShortLambdasOnASingleLine: All
AllowShortLoopsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: MultiLine
AlwaysBreakTemplateDeclarations: Yes
AttributeMacros:
AttributeMacros:
- __capability
- __capability
BinPackArguments: true
BinPackArguments: false
BinPackParameters: true
BinPackParameters: false
BitFieldColonSpacing: Both
BitFieldColonSpacing: Both
BracedInitializerIndentWidth: 4
BraceWrapping:
BraceWrapping:
AfterCaseLabel: false
AfterCaseLabel: false
AfterClass: false
AfterClass: false
AfterControlStatement: Never
AfterControlStatement: MultiLine
AfterEnum: false
AfterEnum: false
AfterExternBlock: false
AfterExternBlock: false
AfterFunction: false
AfterFunction: false
AfterNamespace: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterObjCDeclaration: false
AfterStruct: false
AfterStruct: false
AfterUnion: false
AfterUnion: false
BeforeCatch: false
BeforeCatch: true
BeforeElse: false
BeforeElse: true
BeforeLambdaBody: false
BeforeLambdaBody: false
BeforeWhile: false
BeforeWhile: false
IndentBraces: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyFunction: false
SplitEmptyRecord: true
SplitEmptyRecord: false
SplitEmptyNamespace: true
SplitEmptyNamespace: true
BreakAdjacentStringLiterals: true
BreakAdjacentStringLiterals: true
BreakAfterAttributes: Leave
BreakAfterAttributes: Never
BreakAfterJavaFieldAnnotations: false
BreakAfterJavaFieldAnnotations: false
BreakArrays: false
BreakArrays: false
BreakBeforeBinaryOperators: None
BreakBeforeBinaryOperators: None
BreakBeforeConceptDeclarations: Always
BreakBeforeConceptDeclarations: Always
BreakBeforeBraces: Attach
BreakBeforeBraces: Custom
BreakBeforeInlineASMColon: OnlyMultiline
BreakBeforeInlineASMColon: OnlyMultiline
BreakBeforeTernaryOperators: true
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeColon
BreakConstructorInitializers: BeforeComma
BreakInheritanceList: BeforeColon
BreakInheritanceList: BeforeComma
BreakStringLiterals: true
BreakStringLiterals: true
ColumnLimit: 120
ColumnLimit: 120
CommentPragmas: '^ IWYU pragma:'
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
CompactNamespaces: false
ConstructorInitializerIndentWidth: 4
ConstructorInitializerIndentWidth: 0
ContinuationIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
Cpp11BracedListStyle: true
DerivePointerAlignment: false
DerivePointerAlignment: false
DisableFormat: false
DisableFormat: false
EmptyLineAfterAccessModifier: Never
EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: LogicalBlock
EmptyLineBeforeAccessModifier: LogicalBlock
ExperimentalAutoDetectBinPacking: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
FixNamespaceComments: true
ForEachMacros:
ForEachMacros:
- foreach
- foreach
- Q_FOREACH
- Q_FOREACH
- BOOST_FOREACH
- BOOST_FOREACH
IfMacros:
IfMacros:
- KJ_IF_MAYBE
- KJ_IF_MAYBE
IncludeBlocks: Merge
IncludeBlocks: Regroup
IncludeCategories:
IncludeCategories:
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
- Regex: '^"'
Priority: 2
Priority: 0
SortPriority: 0
SortPriority: 0
CaseSensitive: false
CaseSensitive: false
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
- Regex: '.*'
Priority: 3
Priority: 1
SortPriority: 0
SortPriority: 1
CaseSensitive: false
CaseSensitive: false
- Regex: '.*'
- Regex: '.*'
Priority: 1
Priority: 1
SortPriority: 0
SortPriority: 0
CaseSensitive: false
CaseSensitive: false
IncludeIsMainRegex: '(Test)?$'
IncludeIsMainRegex: '(Test)?$'
IncludeIsMainSourceRegex: ''
IncludeIsMainSourceRegex: ''
IndentAccessModifiers: false
IndentAccessModifiers: false
IndentCaseBlocks: false
IndentCaseBlocks: false
IndentCaseLabels: false
IndentCaseLabels: false
IndentExternBlock: AfterExternBlock
IndentExternBlock: NoIndent
IndentGotoLabels: true
IndentGotoLabels: true
IndentPPDirectives: None
IndentPPDirectives: None
IndentRequiresClause: true
IndentRequiresClause: true
IndentWidth: 4
IndentWidth: 4
IndentWrappedFunctionNames: false
IndentWrappedFunctionNames: false
InsertBraces: false
InsertBraces: true
InsertNewlineAtEOF: false
InsertNewlineAtEOF: true
InsertTrailingCommas: None
InsertTrailingCommas: Wrapped
IntegerLiteralSeparator:
IntegerLiteralSeparator:
Binary: 0
Binary: 0
BinaryMinDigits: 0
BinaryMinDigits: 0
Decimal: 0
Decimal: 3
DecimalMinDigits: 0
DecimalMinDigits: 6
Hex: 0
Hex: -1
HexMinDigits: 0
HexMinDigits: 0
JavaScriptQuotes: Leave
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: true
KeepEmptyLinesAtTheStartOfBlocks: true
KeepEmptyLinesAtEOF: false
KeepEmptyLinesAtEOF: false
LambdaBodyIndentation: Signature
LambdaBodyIndentation: Signature
LineEnding: LF
LineEnding: LF
MacroBlockBegin: ''
MacroBlockBegin: ''
MacroBlockEnd: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
NamespaceIndentation: None
ObjCBinPackProtocolList: Auto
ObjCBinPackProtocolList: Auto
ObjCBlockIndentWidth: 2
ObjCBlockIndentWidth: 2
ObjCBreakBeforeNestedBlockParam: true
ObjCBreakBeforeNestedBlockParam: true
ObjCSpaceAfterProperty: false
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
ObjCSpaceBeforeProtocolList: true
PackConstructorInitializers: BinPack
PackConstructorInitializers: CurrentLine
PenaltyBreakAssignment: 2
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakFirstLessLess: 120
PenaltyBreakOpenParenthesis: 0
PenaltyBreakOpenParenthesis: 0
PenaltyBreakScopeResolution: 500
PenaltyBreakScopeResolution: 500
PenaltyBreakString: 1000
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyExcessCharacter: 1000000
PenaltyIndentedWhitespace: 0
PenaltyIndentedWhitespace: 0
PenaltyReturnTypeOnItsOwnLine: 60
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Right
PointerAlignment: Right
PPIndentWidth: -1
PPIndentWidth: 4
QualifierAlignment: Leave
QualifierAlignment: Custom
QualifierOrder:
- static
- constexpr
- inline
- volatile
- restrict
- const
- type
ReferenceAlignment: Pointer
ReferenceAlignment: Pointer
ReflowComments: true
ReflowComments: true
RemoveBracesLLVM: false
RemoveBracesLLVM: false
RemoveParentheses: Leave
RemoveParentheses: Leave
RemoveSemicolon: true
RemoveSemicolon: true
RequiresClausePosition: OwnLine
RequiresClausePosition: OwnLine
RequiresExpressionIndentation: OuterScope
RequiresExpressionIndentation: OuterScope
SeparateDefinitionBlocks: Leave
SeparateDefinitionBlocks: Always
ShortNamespaceLines: 1
ShortNamespaceLines: 0
SkipMacroDefinitionBody: false
SkipMacroDefinitionBody: false
SortIncludes: CaseSensitive
SortIncludes: CaseSensitive
SortJavaStaticImport: Before
SortJavaStaticImport: Before
SortUsingDeclarations: LexicographicNumeric
SortUsingDeclarations: LexicographicNumeric
SpaceAfterCStyleCast: false
SpaceAfterCStyleCast: true
SpaceAfterLogicalNot: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceAfterTemplateKeyword: true
SpaceAroundPointerQualifiers: Default
SpaceAroundPointerQualifiers: Default
SpaceBeforeAssignmentOperators: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCaseColon: false
SpaceBeforeCaseColon: false
SpaceBeforeCpp11BracedList: false
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeJsonColon: false
SpaceBeforeJsonColon: false
SpaceBeforeParens: ControlStatements
SpaceBeforeParens: Custom
SpaceBeforeParensOptions:
SpaceBeforeParensOptions:
AfterControlStatements: true
AfterControlStatements: true
AfterForeachMacros: true
AfterForeachMacros: false
AfterFunctionDefinitionName: false
AfterFunctionDefinitionName: false
AfterFunctionDeclarationName: false
AfterFunctionDeclarationName: false
AfterIfMacros: true
AfterIfMacros: false
AfterOverloadedOperator: false
AfterOverloadedOperator: false
AfterPlacementOperator: true
AfterPlacementOperator: true
AfterRequiresInClause: false
AfterRequiresInClause: false
AfterRequiresInExpression: false
AfterRequiresInExpression: false
BeforeNonEmptyParentheses: false
BeforeNonEmptyParentheses: false
SpaceBeforeRangeBasedForLoopColon: true
SpaceBeforeRangeBasedForLoopColon: true
SpaceBeforeSquareBrackets: false
SpaceBeforeSquareBrackets: false
SpaceInEmptyBlock: false
SpaceInEmptyBlock: false
SpacesBeforeTrailingComments: 1
SpacesBeforeTrailingComments: 1
SpacesInAngles: Never
SpacesInAngles: Never
SpacesInContainerLiterals: true
SpacesInContainerLiterals: true
SpacesInLineCommentPrefix:
SpacesInLineCommentPrefix:
Minimum: 1
Minimum: 1
Maximum: -1
Maximum: -1
SpacesInParens: Never
SpacesInParens: Never
SpacesInParensOptions:
SpacesInParensOptions:
InCStyleCasts: false
InCStyleCasts: false
InConditionalStatements: false
InConditionalStatements: false
InEmptyParentheses: false
InEmptyParentheses: false
Other: false
Other: false
SpacesInSquareBrackets: false
SpacesInSquareBrackets: false
Standard: Latest
Standard: Latest
StatementAttributeLikeMacros:
StatementAttributeLikeMacros:
- Q_EMIT
- Q_EMIT
StatementMacros:
StatementMacros:
- Q_UNUSED
- Q_UNUSED
- QT_REQUIRE_VERSION
- QT_REQUIRE_VERSION
TabWidth: 8
TabWidth: 4
UseTab: Never
UseTab: Never
VerilogBreakBetweenInstancePorts: true
VerilogBreakBetweenInstancePorts: true
WhitespaceSensitiveMacros:
WhitespaceSensitiveMacros:
- BOOST_PP_STRINGIZE
- VALIDATE
- CF_SWIFT_NAME
- STRINGIZE
- STRINGIZE2
- ENUM_WITH_STRING_CONVERSIONS
- NS_SWIFT_NAME
- NS_SWIFT_NAME
- PP_STRINGIZE
- CF_SWIFT_NAME
- STRINGIZE
...
...