Following example showcases weird line-breaking choices with `AlignAfterOpenBracket: BlockIndent`:
- Pure LLVM style:
```cpp
auto result = std::optional<int>(123)
.transform([](int n) { return n + 100; })
.transform([](int n) {
// multiline lambda
return std::to_string(n);
});
```
- With `AlignAfterOpenBracket: BlockIndent` 💥:
```cpp
auto result = std::optional<int>(123).transform([](int n) { return n + 100; }
).transform([](int n) {
// multiline lambda
return std::to_string(n);
});
```
- Desired output:
```cpp
auto result = std::optional<int>(123)
.transform([](int n) { return n + 100; })
.transform([](int n) {
// multiline lambda
return std::to_string(n);
});
```
Any ideas how to fix this? Can it be done just via the config?
## `.clang-format`
```yaml
---
BasedOnStyle: LLVM
AlignAfterOpenBracket: BlockIndent
AlignOperands: DontAlign
```
Following example showcases weird line-breaking choices with
AlignAfterOpenBracket: BlockIndent
:Pure LLVM style:
With
AlignAfterOpenBracket: BlockIndent
💥:Desired output:
Any ideas how to fix this? Can it be done just via the config?
.clang-format