[PCH] Add an option to not write comments into PCH
authorIlya Biryukov <ibiryukov@google.com>
Mon, 9 Jul 2018 11:33:23 +0000 (11:33 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Mon, 9 Jul 2018 11:33:23 +0000 (11:33 +0000)
commit45643106f76dc47f66df40920b61e5941e2e7c91
tree77937d71b05ad1364483e614bccc02d0bea2a3ed
parent4a9312079aec5e9d3ff5cd680626f59befc3651f
[PCH] Add an option to not write comments into PCH

Summary:
Will be used in clangd, see the follow-up change.
Clangd does not use comments read from PCH to avoid crashes due to
changed contents of the file. However, reading them considerably slows
down code completion on files with large preambles.

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: ioeric, cfe-commits

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

llvm-svn: 336539
clang/include/clang/Lex/PreprocessorOptions.h
clang/lib/Serialization/ASTWriter.cpp