mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00:00 
			
		
		
		
	build: align .clang-format rules with uncrustify config
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
This commit is contained in:
		@@ -14,7 +14,7 @@ PenaltyReturnTypeOnItsOwnLine: 200
 | 
			
		||||
AllowAllParametersOfDeclarationOnNextLine: false
 | 
			
		||||
AllowShortIfStatementsOnASingleLine: false
 | 
			
		||||
AllowShortLoopsOnASingleLine: false
 | 
			
		||||
BinPackParameters: false
 | 
			
		||||
BinPackParameters: true
 | 
			
		||||
BreakBeforeBinaryOperators: true
 | 
			
		||||
BreakBeforeTernaryOperators: true
 | 
			
		||||
ContinuationIndentWidth: 2
 | 
			
		||||
@@ -23,7 +23,7 @@ AlwaysBreakAfterReturnType: None
 | 
			
		||||
AlwaysBreakBeforeMultilineStrings: No
 | 
			
		||||
AlwaysBreakTemplateDeclarations: No
 | 
			
		||||
AlignEscapedNewlines: DontAlign
 | 
			
		||||
BinPackArguments: false
 | 
			
		||||
BinPackArguments: true
 | 
			
		||||
BraceWrapping:
 | 
			
		||||
  AfterClass:      false
 | 
			
		||||
  AfterControlStatement: false
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user