[PATCH] D141811: [clang-format] Allow trailing return types in macros

Emilia Dreamer via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 18 23:27:23 PST 2023


rymiel planned changes to this revision.
rymiel added a comment.

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.


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