clang-format feature request

I’m not sure where best to post this, but I’d like to see a couple of features added to clang-format, and from browsing around, have seen others looking for these features, too.

  1. Ability to break declaration parameters into groups when more than N parameters are declared. For example, if I have more than 3 parameters declared, I’d like to see the declaration changed to show one parameter per line. I could imagine others would want a different grouping style, so maybe something like BreakParametersOfDeclarationAfter: 3, and BreakParametersOfDeclarationGroup: 1 to accomplish this.

  2. Ability to force the use of braces after an if statement, much like the clang-tidy readability-braces-around-statements option without needing to have a compilation database in place.

Any hope this request can make it to the appropriate ears?


[Please reply *only* to the list and do not include my email directly
in the To: or Cc: of your reply; otherwise I will not see your reply.


In article <>,
    Robert Ankeney via cfe-users <> writes:

Any hope this request can make it to the appropriate ears?

You can log feature requests on the bug tracker:


  "New user self-registration is disabled due to spam. For an
  account please email with your e-mail
  address and full name."