[PATCH] D124373: [clang] add parameter pack/pack expansion matchers
Tobias Ribizel via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 27 12:28:47 PDT 2022
upsj added a comment.
This is part of my long-term goal to add support for forwarding parameters and documentation for make_unique-like functions to clangd. To be fair, the details are not entirely fleshed out - for inlay hints (displaying parameter names inline), the entire function template is already available in an instantiated form, so I can work with existing matchers. For signature help (displaying which parameters are available, which one is active while typing), IIRC you only have the template instantiation pattern available, so I need to find the necessary parts of the AST myself.
My thought was to try and move towards this goal in small steps, but if this is an important build time/size consideration, I can also see whether both of them are actually necessary (I suspect isParameterPack might not be) before moving forward?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124373/new/
https://reviews.llvm.org/D124373
More information about the cfe-commits
mailing list