aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/.clang-format
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-08-22 13:40:27 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-08-23 21:44:04 +0200
commit1ce4acb85a3bcb953c0f9cc91d2edc855969948b (patch)
treec06abb52fef74d375c87a7bdf39e7777bbf1b3b1 /src/.clang-format
parentadd doc/rationale.md (diff)
downloadcimple-1ce4acb85a3bcb953c0f9cc91d2edc855969948b.tar.gz
cimple-1ce4acb85a3bcb953c0f9cc91d2edc855969948b.zip
add some code
A basic client-server app, the client sends commands as an array of strings. Hopefully I didn't mess up, and hopefully it'll be useful.
Diffstat (limited to 'src/.clang-format')
-rw-r--r--src/.clang-format12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/.clang-format b/src/.clang-format
new file mode 100644
index 0000000..d46a7a3
--- /dev/null
+++ b/src/.clang-format
@@ -0,0 +1,12 @@
+---
+# The "Linux kernel" style, borrowed and modified from
+# https://clang.llvm.org/docs/ClangFormatStyleOptions.html#examples
+BasedOnStyle: LLVM
+IndentWidth: 8
+UseTab: AlignWithSpaces
+BreakBeforeBraces: Linux
+AllowShortIfStatementsOnASingleLine: false
+IndentCaseLabels: false
+
+ColumnLimit: 100
+AllowShortFunctionsOnASingleLine: Empty