diff options
| author | Karlo Miličević <karlo98.m@gmail.com> | 2025-05-29 20:12:47 +0200 |
|---|---|---|
| committer | Karlo Miličević <karlo98.m@gmail.com> | 2025-05-29 20:12:47 +0200 |
| commit | 03860d2a744368b3514087943f2694485e56224d (patch) | |
| tree | 1dddb2d5bb4aaffa51dfcff7632a23fe26bc37b1 /.clang-format | |
Diffstat (limited to '.clang-format')
| -rw-r--r-- | .clang-format | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..99ffd27 --- /dev/null +++ b/.clang-format @@ -0,0 +1,92 @@ +--- +BasedOnStyle: Mozilla +AccessModifierOffset: '0' + +AlignAfterOpenBracket: Align +AlignArrayOfStructures: Left +AlignConsecutiveBitFields: AcrossEmptyLines +AlignConsecutiveMacros: true +AlignConsecutiveAssignments: true +AlignConsecutiveDeclarations: true +AlignEscapedNewlines: Left +AlignOperands: true +AlignTrailingComments: true + +AllowAllArgumentsOnNextLine: false +AllowAllConstructorInitializersOnNextLine: false +AllowAllParametersOfDeclarationOnNextLine: false + +AllowShortBlocksOnASingleLine: Always +AllowShortCaseLabelsOnASingleLine: true +AllowShortEnumsOnASingleLine: true +AllowShortFunctionsOnASingleLine: All +AllowShortIfStatementsOnASingleLine: Always +AllowShortLambdasOnASingleLine: All +AllowShortLoopsOnASingleLine: true + +AlwaysBreakAfterDefinitionReturnType: All +AlwaysBreakAfterReturnType: AllDefinitions +AlwaysBreakTemplateDeclarations: Yes + +BinPackArguments: false +BinPackParameters: false + +BitFieldColonSpacing: Both + +BraceWrapping: + AfterCaseLabel: true + AfterClass: true + AfterControlStatement: true + AfterEnum: true + AfterExternBlock: true + AfterFunction: true + AfterNamespace: true + AfterStruct: true + AfterUnion: true + BeforeCatch: false + BeforeElse: false + BeforeLambdaBody: true + BeforeWhile: false + IndentBraces: false + SplitEmptyFunction: false + SplitEmptyNamespace: false + +BreakBeforeBinaryOperators: None +BreakBeforeBraces: Custom +BreakBeforeTernaryOperators: true +BreakStringLiterals: false + +ColumnLimit: 112 +CompactNamespaces: false +IncludeBlocks: Preserve +IndentPPDirectives: AfterHash +IndentWidth: 4 +KeepEmptyLinesAtTheStartOfBlocks: false +Language: Cpp +MaxEmptyLinesToKeep: 1 +NamespaceIndentation: All +PointerAlignment: Right +QualifierAlignment: Right +ReflowComments: false + +SortIncludes: Never +SortUsingDeclarations: true + +SpaceAfterCStyleCast: false +SpaceAfterLogicalNot: false +SpaceAfterTemplateKeyword: false +SpaceBeforeAssignmentOperators: true +SpaceBeforeCtorInitializerColon: true +SpaceBeforeInheritanceColon: true +SpaceBeforeParens: Never +SpaceBeforeRangeBasedForLoopColon: true +SpaceInEmptyParentheses: false +SpacesInAngles: false +SpacesInCStyleCastParentheses: false +SpacesInContainerLiterals: false +SpacesInParentheses: false +SpacesInSquareBrackets: false + +TabWidth: 4 +UseTab: ForIndentation +... |
