[PATCH] D79773: [clang-format] Improve clang-formats handling of concepts

Johel Ernesto Guerrero Peña via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 8 00:32:29 PDT 2020


JohelEGP added a comment.

Ah, that makes sense. The very definition of Allman is to always break before braces. I suppose I'll need to use `BreakBeforeBraces: Custom` and `BraceWrapping:`. I did some testing and noticed that the weird format comes with any of these:

  BreakBeforeBraces: Custom
  BraceWrapping:
    AfterControlStatement: MultiLine

  BreakBeforeBraces: Custom
  BraceWrapping:
    AfterFunction: true

Since a requires-expression is neither a control statement nor a function, I suppose it might eventually need its own `BraceWrapping` nested configuration flag. For now, I'd prefer if they never break.


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

https://reviews.llvm.org/D79773





More information about the cfe-commits mailing list