mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 10:45:16 -07:00
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`.
This commit is contained in:
parent
6b6e64dfeb
commit
ac91c56085
@ -2,10 +2,10 @@ BasedOnStyle: Google
|
|||||||
Language: Cpp
|
Language: Cpp
|
||||||
ColumnLimit: 100
|
ColumnLimit: 100
|
||||||
IndentWidth: 2
|
IndentWidth: 2
|
||||||
TabWidth: 2
|
TabWidth: 8
|
||||||
UseTab: Never
|
UseTab: Never
|
||||||
IndentCaseLabels: true
|
IndentCaseLabels: false
|
||||||
BreakBeforeBraces: Linux
|
BreakBeforeBraces: Custom
|
||||||
AlignEscapedNewlinesLeft: false
|
AlignEscapedNewlinesLeft: false
|
||||||
AllowShortFunctionsOnASingleLine: false
|
AllowShortFunctionsOnASingleLine: false
|
||||||
AlignTrailingComments: true
|
AlignTrailingComments: true
|
||||||
@ -17,4 +17,24 @@ AllowShortLoopsOnASingleLine: false
|
|||||||
BinPackParameters: false
|
BinPackParameters: false
|
||||||
BreakBeforeBinaryOperators: true
|
BreakBeforeBinaryOperators: true
|
||||||
BreakBeforeTernaryOperators: 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
|
||||||
|
Loading…
Reference in New Issue
Block a user