]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
clang-format: Avoid breaking after the opening paren of function definitions
authorAlex Richardson <arichardson@FreeBSD.org>
Wed, 28 Oct 2020 11:54:00 +0000 (11:54 +0000)
committerAlex Richardson <arichardson@FreeBSD.org>
Wed, 28 Oct 2020 11:54:00 +0000 (11:54 +0000)
commit71167bd597130dbd6fd0aea749616d9293875489
tree6cdeae425e3c5bb9ba5068b88d6a9fcbbdf6a945
parent453d775b3404cc3dcf53d8584ee1f813d54f40be
clang-format: Avoid breaking after the opening paren of function definitions

This depends on https://reviews.llvm.org/D90246 to have any effect, but once
that has landed clang-format will no longer format code like this:

```
int
myfunction(
    int param1, int param2, int param2)
{
   ...
}
```

and instead create the following:

```
int
myfunction(int param1, int param2,
    int param2)
{
   ...
}
```

Reviewed By: emaste, cem
Differential Revision: https://reviews.freebsd.org/D26978
.clang-format