From f34fb5042d40c186583f9e3009d8a1dd71d07d43 Mon Sep 17 00:00:00 2001 From: Doan Luu Duc Tai Date: Tue, 8 Sep 2026 14:46:47 -0500 Subject: Initial commit --- .clang-format | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .clang-format (limited to '.clang-format') diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..49ef4ad --- /dev/null +++ b/.clang-format @@ -0,0 +1,46 @@ +--- +Language: C +BasedOnStyle: LLVM + +InsertNewlineAtEOF: true + +IndentWidth: 2 +TabWidth: 2 +UseTab: Never +IndentCaseLabels: true + +SpaceBeforeParens: ControlStatements +SpacesInParentheses: false +SpacesInCStyleCastParentheses: false +SpaceAfterCStyleCast: false +BreakBeforeBraces: Attach + +ColumnLimit: 80 +AllowShortFunctionsOnASingleLine: None +AllowShortBlocksOnASingleLine: false +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +BinPackParameters: false +BinPackArguments: false + +PointerAlignment: Right + +AlignEscapedNewlines: Right +IndentPPDirectives: AfterHash + +SortIncludes: true +IncludeBlocks: Merge +IncludeCategories: + - Regex: '^' + Priority: 4 + - Regex: '^".*"' + Priority: 5 + - Regex: '.*' + Priority: 6 +... -- cgit v1.2.3