[clangd] Do not write comments into Preamble PCH
authorIlya Biryukov <ibiryukov@google.com>
Mon, 9 Jul 2018 11:33:31 +0000 (11:33 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Mon, 9 Jul 2018 11:33:31 +0000 (11:33 +0000)
commit6f33b330ae1808ab2a5d7184abafefc5d5821059
treef0f2bde626fb30ae7d56cb2daf5194158d8b046e
parent45643106f76dc47f66df40920b61e5941e2e7c91
[clangd] Do not write comments into Preamble PCH

Summary:
To avoid wasting time deserializing them on code completion and
further reparses.

We do not use the comments anyway, because we cannot rely on the file
contents staying the same for reparses that reuse the prebuilt
preamble PCH.

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: ioeric, MaskRay, jkorous, cfe-commits

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

llvm-svn: 336540
clang-tools-extra/clangd/ClangdUnit.cpp
clang-tools-extra/clangd/CodeCompletionStrings.cpp