[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
Thu Jun 25 19:08:13 PDT 2020


JohelEGP requested changes to this revision.
JohelEGP added a comment.
This revision now requires changes to proceed.

`BreakBeforeBraces: Allman` isn't respected.

  template <class D, class U, class Rep2>
  friend constexpr auto
  operator*(const size2d& l, const units::quantity<D, U, Rep2>& r) noexcept(
      noexcept(l.w* r)) requires(requires { l.w* r; }) //
  {
      return size2d<decltype(l.w() * r)>{l.w * r, l.h * r};
  }

When a trailing //requires-clause// is right before the function body, its opening brace should go on its own line, as dictated by my config file <https://gist.github.com/johelegp/6cf4c287e86cf5e3b90769bcd100ba39>.


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

https://reviews.llvm.org/D79773





More information about the cfe-commits mailing list