aboutsummaryrefslogtreecommitdiff
path: root/src/.clang-format
diff options
context:
space:
mode:
authorFelipe Morales <hel.sheep@gmail.com>2015-01-20 09:52:05 -0300
committerFelipe Morales <hel.sheep@gmail.com>2015-01-26 21:10:14 -0300
commit6425627c3fe1d4c0a88b7309f248f57490b874fd (patch)
tree3f832b37acf5f9c232f058cea126074ab19eff01 /src/.clang-format
parentd30464264af2b5aa261281e221d936095dbab864 (diff)
downloadrneovim-6425627c3fe1d4c0a88b7309f248f57490b874fd.tar.gz
rneovim-6425627c3fe1d4c0a88b7309f248f57490b874fd.tar.bz2
rneovim-6425627c3fe1d4c0a88b7309f248f57490b874fd.zip
tools: add .clang-format
Configuration for clang-format and related utilities. Examples: clang-format -style=file <file> git clang-format -style=file <commit> git diff -U0 HEAD^ | clang-format-diff.py -i -p1 -style=file
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 0000000000..35e545ac4b
--- /dev/null
+++ b/src/.clang-format
@@ -0,0 +1,12 @@
+BasedOnStyle: llvm
+Language: Cpp
+ColumnLimit: 80
+IndentWidth: 2
+TabWidth: 2
+UseTab: Never
+IndentCaseLabels: true
+BreakBeforeBraces: Linux
+AlignEscapedNewlinesLeft: false
+AllowShortFunctionsOnASingleLine: false
+SpacesBeforeTrailingComments: 2
+PenaltyReturnTypeOnItsOwnLine: 200