This is an archive of the discontinued LLVM Phabricator instance.

[CodeComplete] Constructor overload candidates report as vector(int) instead of vector<string>(int)
ClosedPublic

Authored by sammccall on Nov 15 2019, 5:52 AM.

Details

Summary

This is shorter, shouldn't be confusing (is consistent with how they're declared),
and avoids messy cases that are printed as myclass<type-param-0-0>(int) in the
case of partial specialization.

Fixes part of https://github.com/clangd/clangd/issues/76

Diff Detail

Event Timeline

sammccall created this revision.Nov 15 2019, 5:52 AM

Build result: pass - 60091 tests passed, 0 failed and 729 were skipped.
Log files: console-log.txt, CMakeCache.txt

hokein accepted this revision.Nov 15 2019, 6:13 AM
hokein added inline comments.
clang/test/CodeCompletion/templates.cpp
35

shouldn't be now X<T *> after your recent patch?

This revision is now accepted and ready to land.Nov 15 2019, 6:13 AM
sammccall marked 2 inline comments as done.Nov 15 2019, 6:20 AM
sammccall added inline comments.
clang/test/CodeCompletion/templates.cpp
35

Sadly not, that patch doesn't fix every case (and I couldn't work out how to fix most of them)

This revision was automatically updated to reflect the committed changes.
sammccall marked an inline comment as done.