[PATCH] D60374: clang-format incorrectly indents wrapped closing parenthesis

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 7 12:27:16 PDT 2019


owenpan added a comment.

In D60374#1457638 <https://reviews.llvm.org/D60374#1457638>, @klimek wrote:

> The previous behavior looks intentional, and much more regular. I'd be curious why you think the proposed behavior is more readable.


I see the bug in the inconsistency for the code below:

  int Foo::getter(
      //
  ) const {
    return foo;
  }
  
  void Foo::setter(
      //
  ) {
    foo = 1;
  }

The closing parenthesis is indented in `getter` but not `setter`.


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D60374/new/

https://reviews.llvm.org/D60374





More information about the cfe-commits mailing list