[index] Improve macro indexing supportThe major change here is to index macro occurrences in more places thanbefore, specifically* In non-expansion references such as `#if`, `#ifdef`, etc.* Whe
[index] Improve macro indexing supportThe major change here is to index macro occurrences in more places thanbefore, specifically* In non-expansion references such as `#if`, `#ifdef`, etc.* When the macro is a reference to a builtin macro such as __LINE__.* When using the preprocessor state instead of callbacks, we now include all definition locations and undefinitions instead of just the latest one (which may also have had the wrong location previously).* When indexing an existing module file (.pcm), we now include module macros, and we no longer report unrelated preprocessor macros during indexing the module, which could have caused duplication.Additionally, we now correctly obey the system symbol filter for macros,so by default in system headers only definition/undefinition occurrencesare reported, but it can be configured to report references as well ifdesired.Extends FileIndexRecord to support occurrences of macros. Since thedesign of this type is to keep a single list of entities organized bysource location, we incorporate macros into the existing DeclOccurrencestruct.Differential Revision: https://reviews.llvm.org/D99758
show more ...
[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 declarationllvm-svn: 342484
[index] Print and test module import references.llvm-svn: 262208