<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/161718>161718</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format - Break each argument to new line
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
byk4
</td>
</tr>
</table>
<pre>
Hi I am new to .clang-format.
I want each argument on new line ex.
```c
int
foo(
int x,
int b)
{
return (x + b);
}
```
but currently I am getting:
```c
int
foo(int x, int b)
{
return (x + b);
}
```
My current `.clang-format` is:
```
---
BasedOnStyle: Mozilla
AlignAfterOpenBracket: AlwaysBreak
AlignConsecutiveMacros: 'true'
AlignConsecutiveAssignments: 'true'
AlignConsecutiveDeclarations: 'true'
AlignEscapedNewlines: Right
AlignOperands: 'true'
AlignTrailingComments: 'true'
AlwaysBreakAfterDefinitionReturnType: All
AlwaysBreakAfterReturnType: All
AlwaysBreakBeforeMultilineStrings: 'true'
AlwaysBreakTemplateDeclarations: 'Yes'
BreakBeforeBinaryOperators: All
BreakBeforeBraces: Allman
BreakBeforeTernaryOperators: 'true'
BreakConstructorInitializers: BeforeComma
BreakInheritanceList: BeforeComma
BreakStringLiterals: 'true'
ColumnLimit: '80'
ConstructorInitializerIndentWidth: '8'
ContinuationIndentWidth: '8'
DerivePointerAlignment: 'true'
FixNamespaceComments: 'true'
IndentCaseLabels: 'true'
IndentPPDirectives: BeforeHash
IndentWidth: '8'
KeepEmptyLinesAtTheStartOfBlocks: 'false'
NamespaceIndentation: All
SortIncludes: 'false'
SortUsingDeclarations: 'true'
TabWidth: '8'
UseTab: Always
BinPackArguments: false
BinPackParameters: false
...
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyclVFv4jgQxz-NebFAjhMKPOQhlEWLrt1WW1anexycSeKrY0f2pC376U9JgNIt7EonIRCa38z8_ffYhhB0aRFTNl2y6WoELVX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