Commit a25f8f9
committed
[clang-format] Stop moving lambda to new line only to indent it more.
Hanging indents are minimised for lambdas by pushing them onto a new
line. However, it could still do this even if it would cause even more
hanging indents than it otherwise would.
The handling has been expanded to check for this case and avoid moving
the lambda to a new line.1 parent 01f9dff commit a25f8f9
File tree
2 files changed
+37
-4
lines changed- clang
- lib/Format
- unittests/Format
2 files changed
+37
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
329 | | - | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
330 | 331 | | |
331 | 332 | | |
332 | 333 | | |
333 | | - | |
334 | | - | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
335 | 357 | | |
336 | 358 | | |
337 | 359 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23813 | 23813 | | |
23814 | 23814 | | |
23815 | 23815 | | |
| 23816 | + | |
| 23817 | + | |
| 23818 | + | |
| 23819 | + | |
| 23820 | + | |
| 23821 | + | |
| 23822 | + | |
| 23823 | + | |
| 23824 | + | |
| 23825 | + | |
| 23826 | + | |
23816 | 23827 | | |
23817 | 23828 | | |
23818 | 23829 | | |
| |||
0 commit comments