Issue 61474
Summary please add an option "indent insted of aligning"
Labels new issue
Assignees
Reporter unxed
    Something like `astyle -xU` does. From it's documentation:

`--indent-after-parens / -xU`

Indent, instead of align, continuation lines following lines that contain an opening paren '(' or an assignment '='. This includes function definitions and declarations and return statements. The indentation can be modified by using the following indent-continuation option. This option may be preferred for editors displaying proportional fonts.

```
void Foo(bool bar1,
 bool bar2)
{
    isLongFunction(bar1,
 bar2);

    isLongVariable = foo1
                     || foo2;
}
```

becomes

```
void Foo(bool bar1,
 bool bar2)
{
    isLongFunction(bar1,
        bar2);

 isLongVariable = foo1
        || foo2;
}
```


_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to