sstwcw wrote:

This patch introduced this problem.

https://github.com/llvm/llvm-project/pull/173152#issuecomment-4403491044

The new behavior seems to be more consistent.  When the declaration is in a 
function, the closing brace is always lined up with the name, or the stuff 
inside the braces minus the continuation width.

Should I make the closing brace line up with the start of the line both outside 
and inside functions?

old

```C++
x //
    x[] = {
        //
        0,
};

void x() {
  x //
      x[] = {
          //
          0,
      };
}
```

new

```C++
x //
    x[] = {
        //
        0,
    };

void x() {
  x //
      x[] = {
          //
          0,
      };
}
```


https://github.com/llvm/llvm-project/pull/192299
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to