[PATCH] D141811: [clang-format] Allow trailing return types in macros
Björn Schäpers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 20 02:42:56 PST 2023
HazardyKnusperkeks added a comment.
In D141811#4064428 <https://reviews.llvm.org/D141811#4064428>, @rymiel wrote:
> In D141811#4055485 <https://reviews.llvm.org/D141811#4055485>, @HazardyKnusperkeks wrote:
>
>> What about `decltype(auto)`?
>
> Turns out this is a problem even without this patch:
>
> `decltype(auto) a = (b) -> c;`
>
> I'm sure this could somehow be valid c++ syntax, but it does have to be at the top scope. I suppose I could fix it in this patch.
I thought about `auto NAME() -> int { return 42; }`.
`decltype(auto) a = (b) -> c;` is something else...
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141811/new/
https://reviews.llvm.org/D141811
More information about the cfe-commits
mailing list