[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
Mon Aug 10 17:46:48 PDT 2020


JohelEGP added a comment.

I found another case. See how everything after the //requires-clause// is indented for constructors with just the constructor's name (it works otherwise, maybe because it looks like a function).

  class [[nodiscard]] data_t
  {
  public:
      template <std::ranges::input_range R>
          requires std::same_as<std::ranges::range_value_t<R>, flippable_tile_id>
          /*explicit*/ data_t(R&& ids, const format_t f = encoding_t::csv)
            : format_t{f}, tile_ids_{ranges::to_vector(std::forward<R>(ids))}
          {
          }
  
          [[nodiscard]] bool operator==(const data_t&) const = default;
  };


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

https://reviews.llvm.org/D79773



More information about the cfe-commits mailing list