[PATCH] D124589: [clang-format] Fix a bug that misformats Access Specifier after *[]
Owen Pan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 28 01:17:58 PDT 2022
owenpan added a comment.
In D124589#3479241 <https://reviews.llvm.org/D124589#3479241>, @curdeius wrote:
> 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?
Good catch!
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124589/new/
https://reviews.llvm.org/D124589
More information about the cfe-commits
mailing list