]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
clang-format: Avoid breaking after the opening paren of function definitions
authorarichardson <arichardson@FreeBSD.org>
Wed, 28 Oct 2020 11:54:00 +0000 (11:54 +0000)
committerarichardson <arichardson@FreeBSD.org>
Wed, 28 Oct 2020 11:54:00 +0000 (11:54 +0000)
commitd6b5dc93eaecc8e915d112e67774cff8d6bb4fe0
tree6cdeae425e3c5bb9ba5068b88d6a9fcbbdf6a945
parent36a23df5237f95cf6588cd4e22508b1b0ef153b6
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