<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/56640>56640</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
setting a different default break policy when both `ColumnLimit` and `AlignAfterOpenBracket` is set
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
rez23
</td>
</tr>
</table>
<pre>
When I have `ColumnLimit` set and `AlignAfterOpenBracket` policy on `Align`, if I have a situation like this:
```cpp
throw SpriteLoadException(fmt::format("Error loading skeleton from file: '{}'", skel_path));
```
with the function that have exceded the ColumnLimit value after having formatted my code the result appears like this:
```cpp
throw SpriteLoadException(
fmt::format("Error loading skeleton from file: '{}'", skel_path));
```
I'm not sure if the actual behavior is wrong or correct one but would be awesome if I may set a different behavior for this kind of situations.
Personally I think that in this kind of ituation the best choiche would be have a policy like the BlockIdent setting of AlignAfterOpenBracket:
```cpp
throw SpriteLoadException(
fmt::format("Error loading skeleton from file: '{}'",
skel_path)
);
```
Note that this may permits to apply the `Align` policy (or even another) even for to the inner function without problems.
I am on last clang-format stable version.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzNVMFu2zAM_Rr7QjTw5CRODj4kbQcUKLYBO-w4yDYVa5ElQ6KTZV8_yk7atOiwAdthhgFLFik-Pj6ycs2p_NKihQdo5QEhWWa3zgydfdSdJt5BQAJpm3iyMXpnN4rQf-zRbr2s9zja9M7o-gTOPlnxNxG3oNXlYglB0yBJs5HRewRqdUjyTZLdJdkmmo9v3ffTH2q9O8Ln3mvCRyeb--819tE7ESvVUfTMN8r5ThL_SYS49955MGyq7Q7CHg0Sx1LedaC0QTaHRBRJsU2Ku7gQIiKMhl97SW0i1vHNt68QTdujppYhI6jB1mMS1EqaUkOG1mAzHl-RBwdpBk488hUNI6wJMLFxd4LaNTg6eQyDYZb7HqUPf03PZAGvnn9J2p-y9sAuHVhHEAaPUQ0xXVmzEAxUGEnh8DrA0TuOz-vaeY81sZQQqoHg6AbTsCnIIwbX4aSoTp4mXUKjlUKPlp6v4_xG9mCvWbZOPQsvzCZYn9AHZ6UxJ76LTe1-qqa2Lx2fBBtRVxgI6tbpmjdPsM7aPjfAuXIIW-Pq_UMTcTFOiuTyfW_3z39bZIC3g1w_L4QwpfFrOXxwhBPTI82xij16bpUA5KL8uSCRvashcmGWM-Ec8MCTSrKeWvQcZ9qP9Xajo7aWe-2pRWPTOhZR711lsLuU_6xNkF2cWEbGuhppdzcTaRBIsjkcWCV8yyxtyrxZ52uZkiaD5aWg1-JrUMnYwpVHub9gPsa5WjHYN6bq7yYq08Nx0sGbsiXqx1Eg3vO745yGala7jjfGHC6fG07yG3cOb3UIAwZeLJbLeZa25TsVB5RaFcsiwyXKZZUXhRDzVV0t5Tyfp0ZWaEKZLLbJ4i7VpciEyAqRvSvytRAzrNRaNAvR5IVYq3qVzDPspDazGHjm_C715YihGnaBD40OFJ4PZQicJeLlfjlwWXzp8YfI0xFsOSL9CfIhGIc">