<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/82288>82288</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] Multiple WhitespaceSensitiveMacros in function call break indention
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
p3732
</td>
</tr>
</table>
<pre>
This is very similar to https://github.com/llvm/llvm-project/issues/55443
With the whitespace macros being also defined as macros, the indention will only break for other usages of the same whitespace sensitive macro.
Example
```
create_dialog (_("Dialog Title"),
other_parameter,
_("Cancel"), CANCEL_ENUM_VALUE,
_("OK"), OK_ENUM_VALUE);
```
ends up being formatted as
```
create_dialog (_("Dialog Title"),
other_parameter,
_("Cancel"), CANCEL_ENUM_VALUE,
_("OK"), OK_ENUM_VALUE);
```
Full config
```
---
AlignAfterOpenBracket: Align
AlignConsecutiveDeclarations: true
AlignConsecutiveShortCaseStatements:
Enabled: true
AlignOperands: Align
AllowShortCaseLabelsOnASingleLine: true
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: false
AlwaysBreakAfterReturnType: AllDefinitions
BinPackParameters: false
BreakArrays: true
BreakBeforeBraces: Allman
ColumnLimit: 0
Cpp11BracedListStyle: false
IndentCaseBlocks: false
IndentCaseLabels: true
IndentWidth: 4
InsertNewlineAtEOF: true
LineEnding: LF
ReflowComments: true
ExperimentalAutoDetectBinPacking: true
PenaltyBreakAssignment: 1000
PenaltyBreakBeforeFirstCallParameter: 1000
PenaltyBreakOpenParenthesis: 1000
PointerAlignment: Right
SeparateDefinitionBlocks: Always
SpaceAfterCStyleCast: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: Always
SpacesBeforeTrailingComments: 1
SpacesInParens: Never
Macros:
- _(x)=x,
WhitespaceSensitiveMacros:
- _
- N_
- C_
```
</pre>
<img width="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