[PATCH] D74830: [clang][Index] Fix the incomplete instantiations in libindex.

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 19 05:52:57 PST 2020


hokein created this revision.
hokein added a reviewer: kadircet.
Herald added subscribers: usaxena95, arphaman, jkorous, ilya-biryukov.
Herald added a project: clang.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D74830

Files:
  clang-tools-extra/clangd/unittests/XRefsTests.cpp
  clang/lib/Index/IndexingContext.cpp
  clang/test/Index/Core/index-instantiated-source.cpp
  clang/test/Index/Core/index-source.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74830.245388.patch
Type: text/x-patch
Size: 5364 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200219/b2303414/attachment-0001.bin>


More information about the cfe-commits mailing list