diff --git a/.clang-format b/.clang-format index cd688cbe6..a797a282f 100644 --- a/.clang-format +++ b/.clang-format @@ -1,75 +1,51 @@ --- -Language: Cpp +Language: Cpp AccessModifierOffset: -4 AlignAfterOpenBracket: Align AlignArrayOfStructures: None AlignConsecutiveAssignments: - Enabled: false + Enabled: false AcrossEmptyLines: false - AcrossComments: false - AlignCompound: false + AcrossComments: false + AlignCompound: false AlignFunctionDeclarations: true AlignFunctionPointers: false - PadOperators: true + PadOperators: true AlignConsecutiveBitFields: - Enabled: false + Enabled: false AcrossEmptyLines: false - AcrossComments: false - AlignCompound: false + AcrossComments: false + AlignCompound: false AlignFunctionDeclarations: true AlignFunctionPointers: false - PadOperators: true + PadOperators: true AlignConsecutiveDeclarations: - Enabled: false + Enabled: false AcrossEmptyLines: false - AcrossComments: false - AlignCompound: false + AcrossComments: false + AlignCompound: false AlignFunctionDeclarations: true AlignFunctionPointers: false - PadOperators: true + PadOperators: true AlignConsecutiveMacros: - Enabled: false + Enabled: false AcrossEmptyLines: false - AcrossComments: false - AlignCompound: false + AcrossComments: false + AlignCompound: false AlignFunctionDeclarations: true AlignFunctionPointers: false - PadOperators: true + PadOperators: true AlignConsecutiveShortCaseStatements: - Enabled: false + Enabled: false AcrossEmptyLines: false - AcrossComments: false + AcrossComments: false AlignCaseArrows: false AlignCaseColons: false -AlignConsecutiveTableGenBreakingDAGArgColons: - Enabled: false - AcrossEmptyLines: false - AcrossComments: false - AlignCompound: false - AlignFunctionDeclarations: false - AlignFunctionPointers: false - PadOperators: false -AlignConsecutiveTableGenCondOperatorColons: - Enabled: false - AcrossEmptyLines: false - AcrossComments: false - AlignCompound: false - AlignFunctionDeclarations: false - AlignFunctionPointers: false - PadOperators: false -AlignConsecutiveTableGenDefinitionColons: - Enabled: false - AcrossEmptyLines: false - AcrossComments: false - AlignCompound: false - AlignFunctionDeclarations: false - AlignFunctionPointers: false - PadOperators: false AlignEscapedNewlines: Left -AlignOperands: Align +AlignOperands: Align AlignTrailingComments: - Kind: Always - OverEmptyLines: 0 + Kind: Always + OverEmptyLines: 0 AllowAllArgumentsOnNextLine: false AllowAllParametersOfDeclarationOnNextLine: false AllowBreakBeforeNoexceptSpecifier: Never @@ -91,21 +67,21 @@ BinPackParameters: OnePerLine BitFieldColonSpacing: Both BracedInitializerIndentWidth: -1 BraceWrapping: - AfterCaseLabel: true - AfterClass: true + AfterCaseLabel: true + AfterClass: true AfterControlStatement: Always - AfterEnum: true + AfterEnum: true AfterExternBlock: true - AfterFunction: true - AfterNamespace: true + AfterFunction: true + AfterNamespace: true AfterObjCDeclaration: false - AfterStruct: true - AfterUnion: true - BeforeCatch: true - BeforeElse: true + AfterStruct: true + AfterUnion: true + BeforeCatch: true + BeforeElse: true BeforeLambdaBody: true - BeforeWhile: false - IndentBraces: false + BeforeWhile: false + IndentBraces: false SplitEmptyFunction: true SplitEmptyRecord: true SplitEmptyNamespace: true @@ -113,7 +89,7 @@ BreakAdjacentStringLiterals: true BreakAfterAttributes: Leave BreakAfterJavaFieldAnnotations: false BreakAfterReturnType: None -BreakArrays: true +BreakArrays: true BreakBeforeBinaryOperators: NonAssignment BreakBeforeConceptDeclarations: Always BreakBeforeBraces: Custom @@ -126,20 +102,20 @@ BreakFunctionDefinitionParameters: false BreakInheritanceList: AfterColon BreakStringLiterals: true BreakTemplateDeclarations: Yes -ColumnLimit: 135 -CommentPragmas: '^ IWYU pragma:' +ColumnLimit: 135 +CommentPragmas: '^ IWYU pragma:' CompactNamespaces: false ConstructorInitializerIndentWidth: 4 ContinuationIndentWidth: 4 Cpp11BracedListStyle: true DerivePointerAlignment: false -DisableFormat: false +DisableFormat: false EmptyLineAfterAccessModifier: Never EmptyLineBeforeAccessModifier: Always EnumTrailingComma: Leave ExperimentalAutoDetectBinPacking: false FixNamespaceComments: true -IncludeBlocks: Regroup +IncludeBlocks: Regroup IncludeCategories: - Regex: '^\"(.+)\"$' Priority: 1 @@ -177,34 +153,34 @@ IndentExternBlock: Indent IndentGotoLabels: true IndentPPDirectives: BeforeHash IndentRequiresClause: true -IndentWidth: 4 +IndentWidth: 4 IndentWrappedFunctionNames: true -InsertBraces: false +InsertBraces: false InsertNewlineAtEOF: true InsertTrailingCommas: None IntegerLiteralSeparator: - Binary: 0 + Binary: 0 BinaryMinDigits: 0 - Decimal: 0 + Decimal: 0 DecimalMinDigits: 0 - Hex: 0 - HexMinDigits: 0 + Hex: 0 + HexMinDigits: 0 JavaScriptQuotes: Leave JavaScriptWrapImports: true KeepEmptyLines: - AtEndOfFile: false - AtStartOfBlock: false - AtStartOfFile: false -KeepFormFeed: false + AtEndOfFile: false + AtStartOfBlock: false + AtStartOfFile: false +KeepFormFeed: false LambdaBodyIndentation: Signature -LineEnding: LF +LineEnding: LF MacroBlockBegin: '' -MacroBlockEnd: '' +MacroBlockEnd: '' MainIncludeChar: Quote MaxEmptyLinesToKeep: 1 NamespaceIndentation: All ObjCBinPackProtocolList: Auto -ObjCBlockIndentWidth: 2 +ObjCBlockIndentWidth: 4 ObjCBreakBeforeNestedBlockParam: true ObjCSpaceAfterProperty: false ObjCSpaceBeforeProtocolList: true @@ -223,7 +199,7 @@ PenaltyExcessCharacter: 5 PenaltyIndentedWhitespace: 1 PenaltyReturnTypeOnItsOwnLine: 500 PointerAlignment: Left -PPIndentWidth: -1 +PPIndentWidth: -1 QualifierAlignment: Custom QualifierOrder: - static @@ -233,7 +209,7 @@ QualifierOrder: - volatile - type ReferenceAlignment: Pointer -ReflowComments: Never +ReflowComments: Never RemoveBracesLLVM: false RemoveEmptyLinesInUnwrappedLines: false RemoveParentheses: Leave @@ -244,8 +220,8 @@ SeparateDefinitionBlocks: Leave ShortNamespaceLines: 1 SkipMacroDefinitionBody: false SortIncludes: - Enabled: true - IgnoreCase: false + Enabled: true + IgnoreCase: false SortJavaStaticImport: Before SortUsingDeclarations: LexicographicNumeric SpaceAfterCStyleCast: false @@ -265,8 +241,8 @@ SpaceBeforeParensOptions: AfterForeachMacros: true AfterFunctionDefinitionName: false AfterFunctionDeclarationName: false - AfterIfMacros: true - AfterNot: false + AfterIfMacros: true + AfterNot: false AfterOverloadedOperator: false AfterPlacementOperator: true AfterRequiresInClause: false @@ -276,23 +252,22 @@ SpaceBeforeRangeBasedForLoopColon: true SpaceBeforeSquareBrackets: false SpaceInEmptyBlock: false SpacesBeforeTrailingComments: 1 -SpacesInAngles: Never +SpacesInAngles: Never SpacesInContainerLiterals: false SpacesInLineCommentPrefix: - Minimum: 1 - Maximum: -1 -SpacesInParens: Never + Minimum: 1 + Maximum: -1 +SpacesInParens: Never SpacesInParensOptions: ExceptDoubleParentheses: false - InCStyleCasts: false + InCStyleCasts: false InConditionalStatements: false InEmptyParentheses: false - Other: false + Other: false SpacesInSquareBrackets: false -Standard: c++20 -TableGenBreakInsideDAGArg: DontBreak -TabWidth: 4 -UseTab: Never +Standard: c++20 +TabWidth: 4 +UseTab: Never VerilogBreakBetweenInstancePorts: true WrapNamespaceBodyWithEmptyLines: Never ...