[clangd] Set "spelled" flag for constructor references.
authorHaojian Wu <hokein.wu@gmail.com>
Thu, 6 Feb 2020 13:55:12 +0000 (14:55 +0100)
committerHaojian Wu <hokein.wu@gmail.com>
Thu, 6 Feb 2020 15:59:45 +0000 (16:59 +0100)
commitca9fd22adb5a633429ea85d2d62e5414ca35ab11
tree17575acb5fcfbeaf40d32358f5ab12959d7fe4e4
parent0fff6593f8962784d1e2e99994d2ad986f2759a8
[clangd] Set "spelled" flag for constructor references.

Summary:
DeclarationName for cxx constructor is special, it is not an identifier.
thus the "Spelled" flag are not set for all ctor references, this patch
fixes it.

Reviewers: kbobyrev

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D74125
clang-tools-extra/clangd/index/SymbolCollector.cpp
clang-tools-extra/clangd/index/SymbolID.h
clang-tools-extra/clangd/unittests/SymbolCollectorTests.cpp