From 8fc90021951be8566dfaa8d220c5439b9caa9248 Mon Sep 17 00:00:00 2001 From: Jeremy Baxter Date: Tue, 12 Mar 2024 10:35:33 +1300 Subject: [PATCH] clang-format: init --- .clang-format | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++ callisto.c | 2 ++ callisto.h | 2 ++ 3 files changed, 94 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..c48c991 --- /dev/null +++ b/.clang-format @@ -0,0 +1,90 @@ +--- +Language: Cpp +BasedOnStyle: WebKit +AlignAfterOpenBracket: DontAlign +AlignArrayOfStructures: Left +AlignConsecutiveAssignments: false +AlignConsecutiveDeclarations: false +AlignConsecutiveMacros: true +AlignEscapedNewlines: Right +AlignOperands: false +AlignTrailingComments: + Kind: Never +AllowAllArgumentsOnNextLine: false +AllowAllParametersOfDeclarationOnNextLine: true +AllowShortBlocksOnASingleLine: false +AllowShortCaseLabelsOnASingleLine: false +AllowShortFunctionsOnASingleLine: false +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +AlwaysBreakAfterReturnType: AllDefinitions +AlwaysBreakBeforeMultilineStrings: true +BinPackArguments: true +BinPackParameters: true +BraceWrapping: + AfterControlStatement: false + AfterEnum: false + AfterFunction: true + AfterStruct: false + AfterUnion: false + AfterExternBlock: false + BeforeElse: false + IndentBraces: false + SplitEmptyFunction: true + SplitEmptyRecord: true +BreakBeforeBinaryOperators: All +BreakBeforeBraces: Custom +BreakBeforeTernaryOperators: true +BreakStringLiterals: true +ColumnLimit: 82 +ContinuationIndentWidth: 4 +DerivePointerAlignment: false +DisableFormat: false +ExperimentalAutoDetectBinPacking: false +ForEachMacros: + - SLIST_FOREACH + - LIST_FOREACH + - SIMPLEQ_FOREACH + - TAILQ_FOREACH +IncludeBlocks: Preserve +IncludeCategories: + - Regex: '^(