aboutsummaryrefslogtreecommitdiffhomepage
path: root/.clang-format
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2021-06-16 03:31:55 +0900
committernsfisis <nsfisis@gmail.com>2021-06-16 03:31:55 +0900
commitcf0248fa04ffbd181051436b82465e3db69feb48 (patch)
tree807df5e5f146cbb9a81e3c6902afb6ba25b9dce1 /.clang-format
download2048.c-cf0248fa04ffbd181051436b82465e3db69feb48.tar.gz
2048.c-cf0248fa04ffbd181051436b82465e3db69feb48.tar.zst
2048.c-cf0248fa04ffbd181051436b82465e3db69feb48.zip
first commit
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format17
1 files changed, 17 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..704da21
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,17 @@
+# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
+
+Language: Cpp
+Standard: Latest
+BasedOnStyle: LLVM
+
+AccessModifierOffset: -4
+AlignEscapedNewlines: DontAlign
+AlignTrailingComments: false
+AllowShortFunctionsOnASingleLine: None
+AlwaysBreakTemplateDeclarations: Yes
+BreakStringLiterals: false
+ColumnLimit: 120
+IndentWidth: 4
+KeepEmptyLinesAtTheStartOfBlocks: false
+MaxEmptyLinesToKeep: 1
+PointerAlignment: Right