[PATCH] D138425: [clangd] Parameter hints for template specialization
v1nh1shungry via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 21 06:09:03 PST 2022
v1nh1shungry added a comment.
This patch implements:
- Template specialization type
- Class template specialization declaration
- Variable template specialization declaration
- Function specialization declaration
It would be sweet to also implement:
template <class T> constexpr int value = 0;
int I = value</*T: */int>;
template <class T> T add(T lhs, T rhs);
add</*T: */int>(1, 2);
But I got stuck on implementing these. I tried `VisitDeclRefExpr` but failed and have no idea. I prefer to implement these in future patches. But yes, if anyone could give me some hints I am happy to update the patch.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138425/new/
https://reviews.llvm.org/D138425
More information about the cfe-commits
mailing list