mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 01:16:31 +00:00
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
This commit is contained in:
12
src/.clang-format
Normal file
12
src/.clang-format
Normal file
@@ -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
|
Reference in New Issue
Block a user