added clang format

This commit is contained in:
lasan
2026-05-24 18:44:57 +05:30
parent 91e971aff7
commit d301ed725c
+26
View File
@@ -0,0 +1,26 @@
BasedOnStyle: Google
Standard: Cpp17
ColumnLimit: 80
IndentWidth: 2
ContinuationIndentWidth: 4
ConstructorInitializerIndentWidth: 4
AccessModifierOffset: -1
NamespaceIndentation: None
UseTab: Never
PointerAlignment: Left
ReferenceAlignment: Left
DerivePointerAlignment: false
AlignAfterOpenBracket: Align
BreakBeforeBraces: Attach
BreakBeforeBinaryOperators: None
BreakBeforeTernaryOperators: true
SpaceBeforeParens: ControlStatements
SpacesBeforeTrailingComments: 2
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLoopsOnASingleLine: true
AllowShortLambdasOnASingleLine: All
BinPackArguments: true
BinPackParameters: true
SortIncludes: false
IncludeBlocks: Preserve