[PATCH] D145642: [clang-format] Annotate lambdas with requires clauses.

Emilia Dreamer via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 22 11:18:10 PDT 2023


rymiel added a comment.

In D145642#4213256 <https://reviews.llvm.org/D145642#4213256>, @usaxena95 wrote:

> Another point:
> While testing this patch, the following still fails to recognise. Might be something special with `true`.
>
>   auto y = [&]<typename Callable>
>       requires true(Callable && callable)
>     { static_cast<void>(callable); };

Thank you for finding that edge case, I've fixed it and added a test for it


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D145642



More information about the cfe-commits mailing list