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.
Paths
| Differential D48943
[clangd] Do not write comments into Preamble PCH ClosedPublic Authored by ilya-biryukov on Jul 4 2018, 8:26 AM.
Details Summary To avoid wasting time deserializing them on code completion and We do not use the comments anyway, because we cannot rely on the file
Diff Detail
Event Timelineilya-biryukov added a parent revision: D48942: [PCH] Add an option to not write comments into PCH.Jul 4 2018, 8:26 AM Comment Actions Very nice!
This revision is now accepted and ready to land.Jul 5 2018, 1:01 AM Closed by commit rCTE336540: [clangd] Do not write comments into Preamble PCH (authored by ibiryukov). · Explain WhyJul 9 2018, 4:38 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 154569 clangd/ClangdUnit.cpp
clangd/CodeCompletionStrings.cpp
|
nit: these are comment *locations* right?
(Relevant because if we were writing the actual comments, we may actually want this on!)