diff options
author | kylo252 <59826753+kylo252@users.noreply.github.com> | 2022-03-04 14:54:12 +0100 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-03-09 19:44:03 +0800 |
commit | ac91c5608573e86065b3bab6cafe76c48a9b75a2 (patch) | |
tree | c6595a7a8f18b1ba747ae949d6c9d05ef6f16a22 /.clang-format | |
parent | 6b6e64dfeb6d0c2a059911ad25e52befc7944f12 (diff) | |
download | rneovim-ac91c5608573e86065b3bab6cafe76c48a9b75a2.tar.gz rneovim-ac91c5608573e86065b3bab6cafe76c48a9b75a2.tar.bz2 rneovim-ac91c5608573e86065b3bab6cafe76c48a9b75a2.zip |
chore: align clang-format configuration with clint
Some additional tweaks to make clang-format more compatible with
`clint.py` rules.
This is especially useful for range-formatting with `clangd`.
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/.clang-format b/.clang-format index c86f5a3ddf..d5e328f461 100644 --- a/.clang-format +++ b/.clang-format @@ -2,10 +2,10 @@ BasedOnStyle: Google Language: Cpp ColumnLimit: 100 IndentWidth: 2 -TabWidth: 2 +TabWidth: 8 UseTab: Never -IndentCaseLabels: true -BreakBeforeBraces: Linux +IndentCaseLabels: false +BreakBeforeBraces: Custom AlignEscapedNewlinesLeft: false AllowShortFunctionsOnASingleLine: false AlignTrailingComments: true @@ -17,4 +17,24 @@ AllowShortLoopsOnASingleLine: false BinPackParameters: false BreakBeforeBinaryOperators: true BreakBeforeTernaryOperators: true -ContinuationIndentWidth: 4 +ContinuationIndentWidth: 2 +AlwaysBreakAfterDefinitionReturnType: None +AlwaysBreakAfterReturnType: None +AlwaysBreakBeforeMultilineStrings: No +AlwaysBreakTemplateDeclarations: No +AlignEscapedNewlines: DontAlign +BinPackArguments: false +BraceWrapping: + AfterClass: false + AfterControlStatement: false + AfterEnum: false + AfterFunction: true + AfterObjCDeclaration: false + AfterStruct: false + AfterUnion: false + BeforeCatch: false + BeforeElse: false + IndentBraces: false +PointerAlignment: Right +SortIncludes: false +Cpp11BracedListStyle: false |