[PATCH] D116352: [CodeCompletion] Signature help for template argument lists

2022-01-03 Thread Sam McCall via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGcd45e8c7bc16: [CodeCompletion] Signature help for template argument lists (authored by sammccall). Changed prior to commit: https://reviews.llvm.o

[PATCH] D116352: [CodeCompletion] Signature help for template argument lists

2022-01-03 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet accepted this revision. kadircet added a comment. thanks! as discussed offline i think it's better to ignore function parameters for now. Comment at: clang/lib/Sema/SemaCodeComplete.cpp:3781 +// If the template is for a function `bool foo(int)`, then returns +// `bool

[PATCH] D116352: [CodeCompletion] Signature help for template argument lists

2022-01-03 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 397049. sammccall added a comment. Change ResultType handling for template functions. Given: template string getName(int count) const & We return the signature: {ResultType=string} getName<{placeholder=typename T}>() Clangd renders this as: getNa

[PATCH] D116352: [CodeCompletion] Signature help for template argument lists

2022-01-03 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clang/lib/Sema/SemaCodeComplete.cpp:3785 + if (const auto *FTD = dyn_cast(TD)) +return FTD->getTemplatedDecl()->getType().getAsString(Policy); + if (isa(TD)) kadircet wrote: > the rendering looks a little bit sur

[PATCH] D116352: [CodeCompletion] Signature help for template argument lists

2022-01-03 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added a comment. thanks this looks great! just a question around rendering of the result type chunk. feel free to leave a fixme if there's no easy way of doing that. Comment at: clang/lib/Parse/ParseTemplate.cpp:1237 +/// +/// \param NameHint is not required, and mere

[PATCH] D116352: [CodeCompletion] Signature help for template argument lists

2021-12-28 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 396455. sammccall added a comment. Clean up style, remove fixed fixme, add an extra testcase. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D116352/new/ https://reviews.llvm.org/D116352 Files: clang-tools-e

[PATCH] D116352: [CodeCompletion] Signature help for template argument lists

2021-12-28 Thread Sam McCall via Phabricator via cfe-commits
sammccall created this revision. sammccall added reviewers: kadircet, usaxena95. Herald added a subscriber: arphaman. sammccall requested review of this revision. Herald added subscribers: cfe-commits, ilya-biryukov. Herald added projects: clang, clang-tools-extra. Provide signature while typing t