mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 21:25:04 -07:00
d561830a52
Difference can be seen e.g. in qf_add_entry(), where clang-format previously would want to place each parameter declaration on its own line (BinPackParameter: false), while uncrustify behaves if as BinPackParameters was set to true. Same goes for BinPackArguments. See https://clang.llvm.org/docs/ClangFormatStyleOptions.html#BinPackParameters and https://clang.llvm.org/docs/ClangFormatStyleOptions.html#binpackarguments
68 lines
1.8 KiB
YAML
68 lines
1.8 KiB
YAML
BasedOnStyle: Google
|
|
Language: Cpp
|
|
ColumnLimit: 100
|
|
IndentWidth: 2
|
|
TabWidth: 8
|
|
UseTab: Never
|
|
IndentCaseLabels: false
|
|
BreakBeforeBraces: Custom
|
|
AlignEscapedNewlinesLeft: false
|
|
AllowShortFunctionsOnASingleLine: false
|
|
AlignTrailingComments: true
|
|
SpacesBeforeTrailingComments: 2
|
|
PenaltyReturnTypeOnItsOwnLine: 200
|
|
AllowAllParametersOfDeclarationOnNextLine: false
|
|
AllowShortIfStatementsOnASingleLine: false
|
|
AllowShortLoopsOnASingleLine: false
|
|
BinPackParameters: true
|
|
BreakBeforeBinaryOperators: true
|
|
BreakBeforeTernaryOperators: true
|
|
ContinuationIndentWidth: 2
|
|
AlwaysBreakAfterDefinitionReturnType: None
|
|
AlwaysBreakAfterReturnType: None
|
|
AlwaysBreakBeforeMultilineStrings: No
|
|
AlwaysBreakTemplateDeclarations: No
|
|
AlignEscapedNewlines: DontAlign
|
|
BinPackArguments: true
|
|
BraceWrapping:
|
|
AfterClass: false
|
|
AfterControlStatement: false
|
|
AfterEnum: false
|
|
AfterFunction: true
|
|
AfterObjCDeclaration: false
|
|
AfterStruct: false
|
|
AfterUnion: false
|
|
BeforeCatch: false
|
|
BeforeElse: false
|
|
IndentBraces: false
|
|
PointerAlignment: Right
|
|
SortIncludes: true
|
|
Cpp11BracedListStyle: false
|
|
IncludeCategories:
|
|
- Regex: '<[/[:alnum:].]+>'
|
|
Priority: 0
|
|
- Regex: '^"(nvim|vim)/'
|
|
Priority: 1
|
|
SortPriority: 1
|
|
CaseSensitive: false
|
|
AlignConsecutiveMacros: AcrossEmptyLines
|
|
IndentPPDirectives: AfterHash
|
|
SpaceBeforeParens: ControlStatementsExceptControlMacros
|
|
PPIndentWidth: 1
|
|
ForEachMacros:
|
|
- FOR_ALL_AUEVENTS
|
|
- FOR_ALL_AUPATS_IN_EVENT
|
|
- FOR_ALL_BUFFERS
|
|
- FOR_ALL_BUFFERS_BACKWARDS
|
|
- FOR_ALL_FRAMES
|
|
- FOR_ALL_QFL_ITEMS
|
|
- FOR_ALL_SIGNS_IN_BUF
|
|
- FOR_ALL_TABS
|
|
- FOR_ALL_TAB_WINDOWS
|
|
- FOR_ALL_WINDOWS_IN_TAB
|
|
- RBUFFER_EACH
|
|
- RBUFFER_EACH_REVERSE
|
|
- RBUFFER_UNTIL_EMPTY
|
|
- RBUFFER_UNTIL_FULL
|
|
- kl_iter
|