[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
Sun Jul 5 18:39:59 PDT 2020


JohelEGP added a comment.

Another weird formatting when direct-initializing a variable with a non-parenthesized requires-expression:

  constexpr void test_width()
  {
      bool invalid_rep{!requires {typename jge::width<T>;
  }
  }
  ;
  }

vs

  constexpr void test_width()
  {
      bool invalid_rep{!(requires { typename jge::width<T>; })};
      bool invalid_rep = !(requires { typename jge::width<T>; });
      bool invalid_rep = !requires
      {
          typename jge::width<T>;
      };
  }


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

https://reviews.llvm.org/D79773





More information about the cfe-commits mailing list