From fa767ddef9d80e172eefb51290bf64a894224388 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Mon, 13 Apr 2026 09:24:03 +0300 Subject: [PATCH] meta: set up clang-format Signed-off-by: NotAShelf Change-Id: I82153db16a9b18a901faf7095a2a26d26a6a6964 --- .clang-format | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..3de4b69 --- /dev/null +++ b/.clang-format @@ -0,0 +1,39 @@ +--- +Language: Cpp +BasedOnStyle: LLVM +IndentWidth: 2 +TabWidth: 2 +UseTab: Never +ColumnLimit: 100 +AllowShortIfStatementsOnASingleLine: false +BreakBeforeBraces: Attach +IndentCaseLabels: true +IndentGotoLabels: true +IndentPPDirectives: AfterHash +SortIncludes: true +SpaceAfterCStyleCast: true +SpacesInParentheses: false +SpacesInSquareBrackets: false +SpacesInAngles: false +SpaceBeforeParens: ControlStatements +PointerAlignment: Left +AlignConsecutiveAssignments: true +AlignConsecutiveDeclarations: true +AlignArrayOfStructures: Left +AlignTrailingComments: true +AllowShortBlocksOnASingleLine: false +AlwaysBreakAfterReturnType: None +AlwaysBreakTemplateDeclarations: false +BinPackArguments: true +BinPackParameters: true +Cpp11BracedListStyle: true +DerivePointerAlignment: false +FixNamespaceComments: true +KeepEmptyLinesAtTheStartOfBlocks: false +MaxEmptyLinesToKeep: 1 +NamespaceIndentation: All +ReflowComments: true +SortUsingDeclarations: true +SpacesBeforeTrailingComments: 2 +Standard: Cpp11 +...