[clang][Index] Mark references from Constructors and Destructors to class as NameRefe...
authorKadir Cetinkaya <kadircet@google.com>
Fri, 8 Mar 2019 08:30:20 +0000 (08:30 +0000)
committerKadir Cetinkaya <kadircet@google.com>
Fri, 8 Mar 2019 08:30:20 +0000 (08:30 +0000)
commite7eb27a9a0edd859de49bcc9af7ca27dbb435886
tree9f7395d0d0530d77a8a2887c81e4e7565f275dc3
parent4505c99e7222885ecb746a913fc33aa9098cf098
[clang][Index] Mark references from Constructors and Destructors to class as NameReference

Summary:
In current indexing logic we get references to class itself when we see
a constructor/destructor which is only syntactically true. Semantically
this information is not correct. This patch marks that reference as
NameReference to let clients deal with it.

Reviewers: akyrtzi, gribozavr, nathawes, benlangmuir

Reviewed By: gribozavr, nathawes

Subscribers: nathawes, arphaman, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D58814

llvm-svn: 355668
clang/include/clang/Index/IndexSymbol.h
clang/lib/Index/IndexDecl.cpp
clang/lib/Index/IndexSymbol.cpp
clang/lib/Index/IndexingContext.cpp
clang/test/Index/Core/index-source.cpp
clang/unittests/Index/IndexTests.cpp