From 02f53416abb1d4bb1d33699679cd85d38358fa40 Mon Sep 17 00:00:00 2001 From: gogacoder Date: Fri, 5 Jan 2024 20:37:24 +0700 Subject: [PATCH] Formatting style change --- .clang-format | 35 +++-------------------------------- 1 file changed, 3 insertions(+), 32 deletions(-) diff --git a/.clang-format b/.clang-format index e608f4e..f87a53a 100644 --- a/.clang-format +++ b/.clang-format @@ -1,8 +1,9 @@ # Source: https://github.com/arduino/tooling-project-assets/tree/main/other/clang-format-configuration --- +TabWidth: 2 +UseTab: Never AccessModifierOffset: -2 AlignAfterOpenBracket: Align -AlignArrayOfStructures: None AlignConsecutiveAssignments: None AlignConsecutiveBitFields: None AlignConsecutiveDeclarations: None @@ -17,7 +18,6 @@ AllowShortBlocksOnASingleLine: Always AllowShortCaseLabelsOnASingleLine: true AllowShortEnumsOnASingleLine: true AllowShortFunctionsOnASingleLine: Empty -AllowShortIfStatementsOnASingleLine: AllIfsAndElse AllowShortLambdasOnASingleLine: Empty AllowShortLoopsOnASingleLine: true AlwaysBreakAfterDefinitionReturnType: None @@ -26,7 +26,6 @@ AlwaysBreakBeforeMultilineStrings: false AlwaysBreakTemplateDeclarations: No AttributeMacros: - __capability -BasedOnStyle: LLVM BinPackArguments: true BinPackParameters: true BitFieldColonSpacing: Both @@ -69,7 +68,6 @@ Cpp11BracedListStyle: false DeriveLineEnding: true DerivePointerAlignment: true DisableFormat: false -EmptyLineAfterAccessModifier: Leave EmptyLineBeforeAccessModifier: Leave ExperimentalAutoDetectBinPacking: false FixNamespaceComments: false @@ -77,8 +75,6 @@ ForEachMacros: - foreach - Q_FOREACH - BOOST_FOREACH -IfMacros: - - KJ_IF_MAYBE IncludeBlocks: Preserve IncludeCategories: - Regex: '^"(llvm|llvm-c|clang|clang-c)/' @@ -95,10 +91,6 @@ IncludeCategories: CaseSensitive: false IncludeIsMainRegex: '' IncludeIsMainSourceRegex: '' -IndentAccessModifiers: false -IndentCaseBlocks: true -IndentCaseLabels: true -IndentExternBlock: Indent IndentGotoLabels: false IndentPPDirectives: None IndentRequires: true @@ -108,7 +100,6 @@ InsertTrailingCommas: None JavaScriptQuotes: Leave JavaScriptWrapImports: true KeepEmptyLinesAtTheStartOfBlocks: true -LambdaBodyIndentation: Signature Language: Cpp MacroBlockBegin: '' MacroBlockEnd: '' @@ -119,26 +110,17 @@ ObjCBlockIndentWidth: 2 ObjCBreakBeforeNestedBlockParam: true ObjCSpaceAfterProperty: false ObjCSpaceBeforeProtocolList: true -PPIndentWidth: -1 -PackConstructorInitializers: BinPack PenaltyBreakAssignment: 1 PenaltyBreakBeforeFirstCallParameter: 1 PenaltyBreakComment: 1 PenaltyBreakFirstLessLess: 1 -PenaltyBreakOpenParenthesis: 1 PenaltyBreakString: 1 PenaltyBreakTemplateDeclaration: 1 PenaltyExcessCharacter: 1 PenaltyIndentedWhitespace: 1 PenaltyReturnTypeOnItsOwnLine: 1 PointerAlignment: Right -QualifierAlignment: Leave -ReferenceAlignment: Pointer ReflowComments: false -RemoveBracesLLVM: false -SeparateDefinitionBlocks: Leave -ShortNamespaceLines: 0 -SortIncludes: Never SortJavaStaticImport: Before SortUsingDeclarations: false SpaceAfterCStyleCast: false @@ -151,26 +133,14 @@ SpaceBeforeCpp11BracedList: false SpaceBeforeCtorInitializerColon: true SpaceBeforeInheritanceColon: true SpaceBeforeParens: ControlStatements -SpaceBeforeParensOptions: - AfterControlStatements: true - AfterForeachMacros: true - AfterFunctionDefinitionName: false - AfterFunctionDeclarationName: false - AfterIfMacros: true - AfterOverloadedOperator: false - BeforeNonEmptyParentheses: false SpaceBeforeRangeBasedForLoopColon: true SpaceBeforeSquareBrackets: false SpaceInEmptyBlock: false SpaceInEmptyParentheses: false SpacesBeforeTrailingComments: 2 -SpacesInAngles: Leave SpacesInCStyleCastParentheses: false SpacesInConditionalStatement: false SpacesInContainerLiterals: false -SpacesInLineCommentPrefix: - Minimum: 0 - Maximum: -1 SpacesInParentheses: false SpacesInSquareBrackets: false Standard: Auto @@ -188,3 +158,4 @@ WhitespaceSensitiveMacros: - BOOST_PP_STRINGIZE - NS_SWIFT_NAME - CF_SWIFT_NAME +IndentWidth: 4 \ No newline at end of file