<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/63078>63078</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] Own lines when using `.` (such as in LINQs)
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
StrangeRanger
</td>
</tr>
</table>
<pre>
In situations where a lot of `.` continuations are used, such as when using LINQ in C#, unless the max column length is reached, everything is placed on one line. In situations where LINQ is being used, this can make it difficult, or at least less easy, to understand the code at a quick glance, unless each `.` is on its own line. It'd be nice to have an option allowing the user to control whether or not they are placed on separate lines whether or not the max column length has been met (which is usually set by one of the BinPack settings).
Make the following:
```cs
IEnumerable<int> orderIDs = context.Customers.Where(c => c.CustomerID >= 1 && c.CustomerID <= 10).Select(c => c.Orders).OrderBy(o => o.OrderDate)
```
Into the following, even if the max column length hasn't been reached:
```cs
IEnumerable<int> orderIDs = context
.Customers
.Where(c => c.CustomerID >= 1 && c.CustomerID <= 10)
.Select(c => c.Orders)
.OrderBy(o => o.OrderDate);
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyslM-O4zYMxp9GuRATOLLjSQ4-dJIJEKDttt1Dz4zM2OrIUipSM5u3L2THO38wbQ8tEDiB-FH8-KNDZLadJ2rU-kGt9wtM0ofYfJWIvqPf8iMuTqG9NkcPbCWh2OAZXnqKBAguCIQzqLpYqroAE7xYP4swEiSmVukdcDI94JjoIbH1Hfx4_PlXsB52SpdZkrwjZpCeYMBvYIJLgwdHvpMeLEMkNP10Gz1TvEqfb7EMF4eGWggegidw1tMSPrM7FWQ4UU6cnUlvGQx6GPCJwAq09ny2JjnJ0RABBRwh5yczEPJ1TAuQfEuRBX07mjahpSxG-DNZ8wSdQ2_oTWfZ_3dUlrNhKwzhxc-mRen7Fk4E3hrKJXp8JkAP4ZIbAXQuvGTzuV5iilmTocfgcpPSU8yWfZAsuY4jeMXDdMGIMjHiTxI-Ad9jBkYeBhJQevPSWzOOI3FC567AJHC6jujDebzkwfpf0DzliFjfsdLbpSr2qvhhev6UQWfhOdz6UeUtpOpi-hieDo6PPg0U8eRIlTvrRZWPEGJL8bhnUOV-bJ--yXKXWMJAkZe_52krvTE5nvXme_C4B1U-5rQVKF0rXX8M7sZgkT1_JUdG3l_0JZceOxp_PVyV3oQ5HKbDPQopvf3Q0VsCRy_hA4HprfZgz38_CK_0vUzTmP8M_x3cJIdXfrcDAPi_SM4l_hHom7L_jrZ8-ND2om3KdltucUHNqt6s73W1KraLviG9NRW1WGyKVauLmmi9LqrNiqqqOlW4XdhGF7os6kKv6mpVbZctbsu6PK8Mrtt6haSqgga0bunc87AMsVtY5kRNXRb3m4XDEzme92dssujulDpWVeEsC7-miRU3blrj0Hd35xAHFLXew5fbBni3HudFofRmXp7Wjzss01qk6Jpe5ML5FdAHpQ-dlT6dliYMSh9y0dvX3SWGP0buh9E4K30Yvf8VAAD__wDl5S8">