[clangd] Handle PresumedLocations in IncludeCollector
authorKadir Cetinkaya <kadircet@google.com>
Thu, 23 Apr 2020 15:48:47 +0000 (17:48 +0200)
committerKadir Cetinkaya <kadircet@google.com>
Wed, 6 May 2020 11:06:49 +0000 (13:06 +0200)
commit4f7917c269d65cd3c85eddee19385861c4b8390c
treea067067cbd7d720cd264810eb06456116ff63e7a
parent7d507ff55f6c7e44233be129072de1309b96d96d
[clangd] Handle PresumedLocations in IncludeCollector

Summary:
This will enable extraction of correct line locations in preamble patch
for includes.

Reviewers: sammccall

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

Tags: #clang

Differential Revision: https://reviews.llvm.org/D78740
clang-tools-extra/clangd/Headers.cpp
clang-tools-extra/clangd/unittests/HeadersTests.cpp