aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2020-09-18 21:06:53 +0900
committernsfisis <nsfisis@gmail.com>2020-09-25 11:58:04 +0900
commit736ce00e3fbbad425dfbd5a56f3898c2a1a54d30 (patch)
treebafb863a8b286ce0a5da4c145412626ca7765f4a
parent467ba11bc9e33dfe6463d11fc40fbb296cec3dfc (diff)
downloaddotfiles-736ce00e3fbbad425dfbd5a56f3898c2a1a54d30.tar.gz
dotfiles-736ce00e3fbbad425dfbd5a56f3898c2a1a54d30.tar.zst
dotfiles-736ce00e3fbbad425dfbd5a56f3898c2a1a54d30.zip
Add .clang-format
-rw-r--r--.clang-format15
1 files changed, 15 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..908be42
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,15 @@
+# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
+
+Language: Cpp
+Standard: Latest
+BasedOnStyle: LLVM
+
+IndentWidth: 4
+ColumnLimit: 120
+AccessModifierOffset: -4
+AlignEscapedNewlines: DontAlign
+AlignTrailingComments: false
+BreakStringLiterals: false
+KeepEmptyLinesAtTheStartOfBlocks: false
+MaxEmptyLinesToKeep: 1
+PointerAlignment: Left