aboutsummaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-03-29 17:34:50 +0200
committerJustin M. Keyes <justinkz@gmail.com>2018-11-28 03:48:06 +0100
commit67305ffb5de865f872898c03cbacd189c9e9aa53 (patch)
tree16f59a842ca855bc0f959a063b975bafa741bdec /.clang-format
parent519224f6bd248b419d16720d23417c6ed8df447b (diff)
downloadrneovim-67305ffb5de865f872898c03cbacd189c9e9aa53.tar.gz
rneovim-67305ffb5de865f872898c03cbacd189c9e9aa53.tar.bz2
rneovim-67305ffb5de865f872898c03cbacd189c9e9aa53.zip
lint: src/.clang-format
Move to top level so that clang-format -style=file can find it regardless of current directory.
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format20
1 files changed, 20 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000000..ff61915aac
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,20 @@
+BasedOnStyle: Google
+Language: Cpp
+ColumnLimit: 80
+IndentWidth: 2
+TabWidth: 2
+UseTab: Never
+IndentCaseLabels: true
+BreakBeforeBraces: Linux
+AlignEscapedNewlinesLeft: false
+AllowShortFunctionsOnASingleLine: false
+AlignTrailingComments: true
+SpacesBeforeTrailingComments: 2
+PenaltyReturnTypeOnItsOwnLine: 200
+AllowAllParametersOfDeclarationOnNextLine: false
+AllowShortIfStatementsOnASingleLine: false
+AllowShortLoopsOnASingleLine: false
+BinPackParameters: false
+BreakBeforeBinaryOperators: true
+BreakBeforeTernaryOperators: true
+ContinuationIndentWidth: 4