From: APTX Date: Sat, 31 Jan 2026 07:31:19 +0000 (+0900) Subject: Add .clang-format X-Git-Url: https://gitweb.tyo.aptx.org/?a=commitdiff_plain;h=55bd74ce0635263502c5713e3619577318b656e5;p=localmylist.git Add .clang-format --- diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..aad3715 --- /dev/null +++ b/.clang-format @@ -0,0 +1,45 @@ +Language: Cpp +BasedOnStyle: LLVM +UseTab: Always +IndentWidth: 4 +TabWidth: 4 +IndentAccessModifiers: false +AccessModifierOffset: -4 + +DerivePointerAlignment: false +PointerAlignment: Right + +AllowAllArgumentsOnNextLine: true + +AlwaysBreakTemplateDeclarations: Yes + +SpaceAfterTemplateKeyword: false + +EmptyLineAfterAccessModifier: Never +EmptyLineBeforeAccessModifier: Always + +AllowShortCaseLabelsOnASingleLine: false +IndentCaseBlocks: true +IndentCaseLabels: true + +BreakBeforeBinaryOperators: NonAssignment + +BreakBeforeBraces: Allman +#BreakBeforeBraces: Custom +BraceWrapping: + AfterCaseLabel: false + AfterEnum: false + AfterClass: true + AfterControlStatement: Never + AfterFunction: false + AfterNamespace: false + AfterStruct: false + AfterUnion: false + AfterExternBlock: false + BeforeCatch: false + BeforeElse: false + BeforeLambdaBody: false + BeforeWhile: false + + +