[PATCH] D114583: [clang-format] Adjust braced list detection

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 18 04:07:32 PST 2021


MyDeveloperDay added a comment.

This is having an impact on code in flang, I don't deny it might be better, but it may not be what is wanted.

  -  explicit Expr(const Scalar<Result> &x) : u{Constant<Result>{x}} {}
  -  explicit Expr(Scalar<Result> &&x) : u{Constant<Result>{std::move(x)}} {}
  +  explicit Expr(const Scalar<Result> &x) : u {
  +    Constant<Result> { x }
  +  }
  +  {}
  +  explicit Expr(Scalar<Result> &&x) : u {
  +    Constant<Result> { std::move(x) }
  +  }
  +  {}


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D114583



More information about the cfe-commits mailing list