[index] Enhance indexing for module references
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 18 Sep 2018 15:02:56 +0000 (15:02 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 18 Sep 2018 15:02:56 +0000 (15:02 +0000)
commit32e5d8626d006337416ae4a4190bd498e8a5478a
tree4b582e1928277a1f749a0fe27d0eecec752d4309
parent9f9cdd41ccb90ed75fa8903307214f16e56ed51a
[index] Enhance indexing for module references

* Create a USR for the occurrences of the 'module' symbol kind
* Record module references for each identifier in an import declaration

llvm-svn: 342484
12 files changed:
clang/include/clang/Index/IndexDataConsumer.h
clang/include/clang/Index/USRGeneration.h
clang/lib/Index/IndexingAction.cpp
clang/lib/Index/IndexingContext.cpp
clang/lib/Index/USRGeneration.cpp
clang/test/Index/Core/Inputs/module/SubModA.h [new file with mode: 0644]
clang/test/Index/Core/Inputs/module/SubSubModA.h [new file with mode: 0644]
clang/test/Index/Core/Inputs/module/module.modulemap
clang/test/Index/Core/index-with-module.m
clang/tools/c-index-test/core_main.cpp
clang/tools/libclang/CXIndexDataConsumer.cpp
clang/tools/libclang/CXIndexDataConsumer.h