[clang][Index] Enable indexing of Template Type Parameters behind a flag
authorKadir Cetinkaya <kadircet@google.com>
Thu, 21 Feb 2019 09:52:33 +0000 (09:52 +0000)
committerKadir Cetinkaya <kadircet@google.com>
Thu, 21 Feb 2019 09:52:33 +0000 (09:52 +0000)
commitb780517ca5a1102187acbcedca8381542c809063
tree9686472857d806f028fde14ffeef90f562d61678
parentb672602f9ed9cf683e6094e615be6c65cca2f96e
[clang][Index] Enable indexing of Template Type Parameters behind a flag

Summary:
clangd uses indexing api to provide references and it was not possible
to perform symbol information for template parameters. This patch enables
visiting of TemplateTypeParmTypeLocs.

Reviewers: ilya-biryukov, akyrtzi

Subscribers: javed.absar, kristof.beyls, ioeric, arphaman, cfe-commits

Tags: #clang

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

llvm-svn: 354560
clang/include/clang/Index/IndexingAction.h
clang/lib/Index/IndexDecl.cpp
clang/lib/Index/IndexSymbol.cpp
clang/lib/Index/IndexTypeSourceInfo.cpp
clang/lib/Index/IndexingContext.cpp
clang/lib/Index/IndexingContext.h
clang/unittests/Index/IndexTests.cpp