[clangd] Respect Origin option in createStaticIndexingAction
authorKadir Cetinkaya <kadircet@google.com>
Mon, 11 Mar 2019 11:01:14 +0000 (11:01 +0000)
committerKadir Cetinkaya <kadircet@google.com>
Mon, 11 Mar 2019 11:01:14 +0000 (11:01 +0000)
commita7cdfd9cb5643b15fcbd885aa73e5c304ffff91b
treea04361148f89f7d62ca45e4437bc79ae6a541508
parent1b1d372b423413dc8b2c5cca86240e9ae79afcc6
[clangd] Respect Origin option in createStaticIndexingAction

Summary:
Currently createStaticIndexingAction always set Origin to Static, which
makes it hard to change it later on by different indexers(One needs to go over
each symbol making a new copy).

This patch changes that behavior to rather respect it if set by user.

Reviewers: ioeric

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

Tags: #clang

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

llvm-svn: 355820
clang-tools-extra/clangd/index/IndexAction.cpp
clang-tools-extra/clangd/index/IndexAction.h