summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Tooling/SourceCodeBuildersTest.cpp
diff options
context:
space:
mode:
authorUtkarsh Saxena <usx@google.com>2020-01-08 13:57:00 +0100
committerUtkarsh Saxena <usx@google.com>2020-01-13 11:11:18 +0100
commit734aa1d133f264746f721a244d2c66bc99648ee5 (patch)
tree4ac7af834f12389285a5de66ed0ecb46697299c3 /clang/unittests/Tooling/SourceCodeBuildersTest.cpp
parentc9babcbda77e69698825cfb9ce771352be93acee (diff)
downloadbcm5719-llvm-734aa1d133f264746f721a244d2c66bc99648ee5.tar.gz
bcm5719-llvm-734aa1d133f264746f721a244d2c66bc99648ee5.zip
[clangd] Publish xref for macros from Index and AST.
Summary: With this patch the `findReferences` API will return Xref for macros. If the symbol under the cursor is a macro then we collect the references to it from: 1. Main file by looking at the ParsedAST. (These were added to the ParsedAST in https://reviews.llvm.org/D70008) 2. Files other than the mainfile by looking at the: * static index (Added in https://reviews.llvm.org/D70489) * file index (Added in https://reviews.llvm.org/D71406) This patch collects all the xref from the above places and outputs it in `findReferences` API. Reviewers: kadircet Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D72395
Diffstat (limited to 'clang/unittests/Tooling/SourceCodeBuildersTest.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud