[clangd] Add helper for collecting #include directives in file.
authorEric Liu <ioeric@google.com>
Mon, 14 May 2018 12:19:16 +0000 (12:19 +0000)
committerEric Liu <ioeric@google.com>
Mon, 14 May 2018 12:19:16 +0000 (12:19 +0000)
commit155f5a4f47da8f17b6a8e5d747ec365d0725cc64
tree363df296880f926826af10e73f7ded2e88762431
parent0b0ad22aa538121a01756df34873892b85c650a5
[clangd] Add helper for collecting #include directives in file.

Summary: Separate unit tests for the new function will be added in followup patch which will further refactor Headers.h

Reviewers: sammccall

Reviewed By: sammccall

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

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

llvm-svn: 332237
clang-tools-extra/clangd/ClangdUnit.cpp
clang-tools-extra/clangd/ClangdUnit.h
clang-tools-extra/clangd/Headers.cpp
clang-tools-extra/clangd/Headers.h
clang-tools-extra/clangd/XRefs.cpp