[PATCH] D33029: [clang-format] add option for dangling parenthesis

Guillaume Racicot via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 11 07:59:12 PDT 2019


gracicot added a comment.

Will this option also work with dangling braces from initializers?

I have some code that looks like this:

  return some_type_with_a_long_name{
      get_param_number_one(),
      get_param_number_two()
  };

Clang format will put the brace at the end of the line:

  return some_type_with_a_long_name{
      get_param_number_one(),
      get_param_number_two()};

I would like to keep the style of the first snippet.


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

https://reviews.llvm.org/D33029





More information about the cfe-commits mailing list