[clangd] Use name of Macro to compute its SymbolID, NFC.
authorUtkarsh Saxena <usx@google.com>
Mon, 11 Nov 2019 11:38:17 +0000 (12:38 +0100)
committerHaojian Wu <hokein.wu@gmail.com>
Mon, 11 Nov 2019 11:38:49 +0000 (12:38 +0100)
commit02ec6ff77eb718528138737c885e67c248ecae49
treeadcce5c84745147d94a6dcc6b1331f3550fd9af9
parent0cc7c29a97e401359782edf3263cdc1a130415d8
[clangd] Use name of Macro to compute its SymbolID, NFC.

Summary:
We use the name from the IdentifierInfo of the Macro to compute its
SymbolID. It is better to just take the Name as a parameter to avoid
storing the IdentifierInfo whenever we need the SymbolID for the Macro.

Patch by UTKARSH SAXENA!

Reviewers: hokein

Reviewed By: hokein

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

Tags: #clang

Differential Revision: https://reviews.llvm.org/D69937
clang-tools-extra/clangd/AST.cpp
clang-tools-extra/clangd/AST.h
clang-tools-extra/clangd/CodeComplete.cpp
clang-tools-extra/clangd/index/SymbolCollector.cpp