Issue 55478
Summary [clang-format]: continuation for chained calls is wrong
Labels new issue
Assignees
Reporter igagis
    # input files

`.clang-format`:
```yaml
---
ColumnLimit: '120'
ContinuationIndentWidth: '1'
IndentWidth: '1'
Standard: Latest
TabWidth: '1'
UseCRLF: 'false'
UseTab: ForContinuationAndIndentation

...
```

`main.cpp`:
```cpp
void func()
{
	auto out = utki::linq(std::move(in))
		.select([](auto v) {
			auto r = std::make_pair(std::move(v.second), 13.4f);
			tst::check(v.second.empty(), SL);
			return r;
		})
		.get();
}
```

# command

```console
clang-format main.cpp
```

# expected result

formatting is not changed

# actual result

```cpp
void func() {
	auto out = utki::linq(std::move(in))
													.select([](auto v) {
														auto r = std::make_pair(std::move(v.second), 13.4f);
														tst::check(v.second.empty(), SL);
														return r;
													})
													.get();
}
```
The continuation indentation is wrong.

# version

```console
$ clang-format --version
Debian clang-format version 15.0.0-++20220513071846+693758b28295-1~exp1~20220513071937.249
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to