]> Some of my projects - localmylist.git/commitdiff
Add .clang-format
authorAPTX <redacted>
Sat, 31 Jan 2026 07:31:19 +0000 (16:31 +0900)
committerAPTX <redacted>
Sat, 31 Jan 2026 07:31:32 +0000 (16:31 +0900)
.clang-format [new file with mode: 0644]

diff --git a/.clang-format b/.clang-format
new file mode 100644 (file)
index 0000000..aad3715
--- /dev/null
@@ -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
+
+
+