]> granicus.if.org Git - clang/commit
[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)
commit87becae02c7bcddcc684aa2f1d4191cdfee78c8e
tree5e580ee2cb86a2113c184b27d0fde08f79348376
parentbb4e581872047f891a408e293f1a4cb9b931154c
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@355668 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Index/IndexSymbol.h
lib/Index/IndexDecl.cpp
lib/Index/IndexSymbol.cpp
lib/Index/IndexingContext.cpp
test/Index/Core/index-source.cpp
unittests/Index/IndexTests.cpp