[PATCH] D124690: [clangd] add inlay hints for std::forward-ed parameter packs

Nathan Ridge via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 26 16:20:44 PDT 2022


nridge added a comment.

In D124690#3540704 <https://reviews.llvm.org/D124690#3540704>, @upsj wrote:

> Example where this pops up:
>
>   cpp
>       namespace std { template <typename T> T&& forward(T&); }
>       struct S { S(int a); };
>       template <typename T, typename... Args>
>       T bar(Args&&... args) { return T{std::forward<Args>($fwd[[args]])...}; }
>       void baz() {
>         int b;
>         bar<S>($param[[b]]);
>       }

I'm happy to take a look at this, but I would need some updated code to run (including in particular the update to the call site that currently uses `getNonReferenceType()`)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D124690



More information about the cfe-commits mailing list