[llvm-dev] Change coding style for argument alignment?

antlists via llvm-dev llvm-dev at lists.llvm.org
Tue Dec 22 03:53:56 PST 2020


On 22/12/2020 06:00, Nicolai Hähnle wrote:
> That said, the proposed change is clearly better even in this case, 
> because while
> 
> someFunctionCall(
>      x1, y1,
>      x2, y2);

Given that this is all being auto-formatted, should we implement that by 
having the rule that the arguments will be auto-indented, but won't be 
re-laid out if there's a comment marker at the end, eg

someFunctionCall(
      x1, y1,    //
      x2, y2);   //

Whether there is a comment there or not, the marker will be preserved 
and suppress the re-layout.

Cheers,
Wol


More information about the llvm-dev mailing list