[clangd] Collect location of macro definition in the ParsedAST
authorHaojian Wu <hokein@google.com>
Tue, 10 Sep 2019 10:10:36 +0000 (10:10 +0000)
committerHaojian Wu <hokein@google.com>
Tue, 10 Sep 2019 10:10:36 +0000 (10:10 +0000)
commit8dd26fd84e7c0cbb193e07961c57f6c895801f5e
treee305791884eab56a85cae79aa8c804fea86ad3ad
parent664d9d2da27d1e0f8df4790fc15b92e549270aa1
[clangd] Collect location of macro definition in the ParsedAST

allows semantic hightlighting macro definition

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

Tags: #clang

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

llvm-svn: 371504
clang-tools-extra/clangd/ParsedAST.cpp
clang-tools-extra/clangd/ParsedAST.h
clang-tools-extra/clangd/SemanticHighlighting.cpp
clang-tools-extra/clangd/unittests/ParsedASTTests.cpp
clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp