[clangd] Preserve -nostdinc and --sysroot when calling query driver
authorKadir Cetinkaya <kadircet@google.com>
Wed, 5 Feb 2020 08:55:56 +0000 (09:55 +0100)
committerKadir Cetinkaya <kadircet@google.com>
Wed, 5 Feb 2020 08:58:06 +0000 (09:58 +0100)
commit6e8d6bc9ec8739ec22b73a23f740f171f452e234
treec8d294befc23026b3fe61804e46c717becad1c5a
parenta3d489e87e8243bdb0eff947a38006b039dff8c0
[clangd] Preserve -nostdinc and --sysroot when calling query driver

Solves this issue: https://github.com/clangd/clangd/issues/157

This is my first contribution to an llvm project, so I hope I'm doing it right!

Patch by @topisani (Tobias Pisani)!

Reviewers: kadircet, klimek

Differential Revision: https://reviews.llvm.org/D73811
clang-tools-extra/clangd/QueryDriverDatabase.cpp
clang-tools-extra/clangd/test/system-include-extractor.test