<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/128016>128016</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format LambdaBodyIndentation incorrectly work with custom IndentWidth
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Childcity
</td>
</tr>
</table>
<pre>
- clang-format: 13.0 _or higher_.
- reproduced on 19.1.7 / 21.0.0
`LambdaBodyIndentation` doesn't work correctly with the following config:
```
LambdaBodyIndentation: Signature
ColumnLimit: 100
IndentWidth: 4
TabWidth: 4
UseTab: ForIndentation
```
## Steps To Reproduce:
- Save test.cpp
```cpp
void foo() {
auto it =
std::find_if(list.cbegin(), list.cend(), [config](const FooBazzBarrAaaaFooBazzBar &other) {
return other->isEqual(config);
});
}
```
- Run `clang-format.exe -i -style='{LambdaBodyIndentation: Signature, ColumnLimit: 100, IndentWidth: 4, TabWidth: 4, UseTab: ForIndentation}' "D:\test.cpp"`
## Expected Result
<img src="https://github.com/user-attachments/assets/cce0ad9b-8bdd-4601-bbd1-901368dec14e" width="700">
## Actual Result
<img src="https://github.com/user-attachments/assets/ce13d6df-3bfb-4580-832b-37329c434b86" width="700">
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJysVM1u4zgTfBr60pBANfV70EG2Y-AD5pTkwx4DimxJ3JVFL0klk3n6BW0ncWazgz0sQMBmm12sKpZbem_GhahlxZYV-41cw2Rdu5vMrJUJr5ve6tc2ATXLZUwG644yMNFBJlIOT9bBZMaJ3FPKeJeAo5OzelWkwS6QNWmWVsDwAJilPOWMd3GV_Js89lpurX7936JpCTIYu7CSg7bkF4ZVgBfr_gBlnSMV5ld4MWGCMBEMdp7ti1lGUHYZzMjEFfO6ePc1uOjgwYyLDKsjxrudndfj8s0czUUOj52X878ZHaZYzBnvHmX_af9_T4-yj7uDdbf4nznEhYKhgIdAJw-PFu7fvLkyjn49yGeCQD6k6nRivAN4B3krPFujYbCWYc2wAVZtL-d4I9dgwQRgYv9WAh90hBfdYBb9ZAaG9WwifE-jWS4YDHdwKdKiP0qs2F4dLfYMa2UXH-Bg7Vb--LGVznVSyo8tMCxtmMj9RCqSAABHYXULnE8kTNwZf_fnKucLbrwDGybem2IHq_a3xWr_2Y6zXffrci7dhjGl7wSJgcSH15miF1ixavsvQoA7-CIFuIO_xQB38DkHuIN_DELUEUOP-_gSxe79eREvOqLkt3TcfT-RCqThnvw6h_iD2JnjCN6psxacQjj5iIQHhofRhGntU2WPDA-rJ5fIEKSajrQEz_AgvafzF6WIS930Sd1rneQlz5K-11nS8EyUtSaV5cQQ4eUiKt5URfXIxN1PHDsVVjnfMPzvSFImdKmHRPRDn-RFzZNaYJ-ISmCjcpH3dfkLkhvdCt2IRm6ozaqc8zLPC76ZWl0WumgGzAtdSRxqkmVd9rnAXDWy4dnGtMix4Ig8K7Kc12kpCSUSNlpng9Sa5ZyO0szpPD8fU-vGjfF-pTbDmmflZpY9zf5tZro2nkr6dfQs5_Gv5T_6ggkztbeJhS-zCWa5mXZx-J1Hnlp9sMfbSG5WN7e_MDzefP1ITs7-TiowPJzpR8-vCp5b_CsAAP__glbPHg">