diff options
author | Felipe Morales <hel.sheep@gmail.com> | 2015-01-20 09:52:05 -0300 |
---|---|---|
committer | Felipe Morales <hel.sheep@gmail.com> | 2015-01-26 21:10:14 -0300 |
commit | 6425627c3fe1d4c0a88b7309f248f57490b874fd (patch) | |
tree | 3f832b37acf5f9c232f058cea126074ab19eff01 /src | |
parent | d30464264af2b5aa261281e221d936095dbab864 (diff) | |
download | rneovim-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')
-rw-r--r-- | src/.clang-format | 12 | ||||
-rw-r--r-- | src/nvim/version.c | 2 |
2 files changed, 14 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 diff --git a/src/nvim/version.c b/src/nvim/version.c index 3aa8ea911c..afafc0b1bc 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -177,6 +177,7 @@ static char *(features[]) = { NULL }; +// clang-format off static int included_patches[] = { //591 NA //590, @@ -771,6 +772,7 @@ static int included_patches[] = { 1, 0 }; +// clang-format on /// Place to put a short description when adding a feature with a patch. /// Keep it short, e.g.,: "relative numbers", "persistent undo". |