[PATCH] D134325: [clang-format] Look ahead before consuming `bool` in requires clause.

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 21 00:38:15 PDT 2022


MyDeveloperDay added a comment.

In D134325#3804817 <https://reviews.llvm.org/D134325#3804817>, @zzyyyl wrote:

> What if `concept c = (bool)(...)` ?
>
> or `concept c = static_cast<bool>(...)`

Aren't these handled elsewhere in the case (by the static_cast and l_paren rules)? but possibly worth a test either an annotation test or an actual formatting example.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D134325



More information about the cfe-commits mailing list