[PATCH] D124589: [clang-format] Fix a bug that misformats Access Specifier after *[]

Marek Kurdej via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 27 23:24:36 PDT 2022


curdeius added a comment.

Looks more or less correct, but I am afraid that this change may misbehave in some rare cases.
Consider `*[](auto *x) { return x; }();`, so an immediately invoked lambda returning a pointer.
It seems to be correctly formatted currently, but I don't see any test on it.
Could you add a test for this please?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D124589



More information about the cfe-commits mailing list