Haojian Wu
bb9e92bad5
[clang][Index] Fix the incomplete instantiations in libindex.
...
Summary:
libindex will canonicalize references to template instantiations:
- 1) reference to an explicit template specialization, report the specializatiion
- 2) otherwise, report the primary template
but 2) is not true for incomplete instantiations, this patch fixes this.
Fixes https://github.com/clangd/clangd/issues/287
Reviewers: kadircet
Subscribers: ilya-biryukov, jkorous, arphaman, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D74830
2020-02-20 14:42:30 +01:00
Alex Lorenz
4bbce51539
[index] The references to enum constants from member enums that are
...
from template instantiations should refer to the enum constant in the pattern
enum in the base template
rdar://32325459
llvm-svn: 303651
2017-05-23 16:47:01 +00:00
Alex Lorenz
9d60520608
[index] The references to member enums from template instantiations should
...
refer to the pattern member enum in the base template
rdar://32325459
llvm-svn: 303650
2017-05-23 16:35:50 +00:00
Alex Lorenz
fcbae3a308
[index] The references to type aliases and typedefs from template
...
instantiations should refer to the pattern type aliases / typedefs in the base
templates
rdar://32325459
llvm-svn: 303648
2017-05-23 16:27:42 +00:00
Alex Lorenz
73e27a6031
[index] The references to fields from nested records in template instantiations
...
should refer to the pattern fields in the nested records in the base templates
rdar://32352429
llvm-svn: 303647
2017-05-23 16:25:06 +00:00
Alex Lorenz
2109d436ab
[index] The references to records from template instantiations should refer
...
to the pattern records in the base templates
rdar://32325459
llvm-svn: 303646
2017-05-23 16:23:28 +00:00
Alex Lorenz
048c8a9e7f
[index] References to fields from template instantiations should refer to
...
fields in base templates
rdar://32197158
llvm-svn: 303068
2017-05-15 14:26:22 +00:00