[all-commits] [llvm/llvm-project] bb9e92: [clang][Index] Fix the incomplete instantiations i...

Haojian Wu via All-commits all-commits at lists.llvm.org
Thu Feb 20 05:53:42 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: bb9e92bad55f65f2de58bf29548bdfd3dea2d7ab
      https://github.com/llvm/llvm-project/commit/bb9e92bad55f65f2de58bf29548bdfd3dea2d7ab
  Author: Haojian Wu <hokein.wu at gmail.com>
  Date:   2020-02-20 (Thu, 20 Feb 2020)

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

  Log Message:
  -----------
  [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




More information about the All-commits mailing list