[Frontend] Allow to use PrecompiledPreamble without calling CanReuse
authorIlya Biryukov <ibiryukov@google.com>
Thu, 18 Jan 2018 15:16:53 +0000 (15:16 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Thu, 18 Jan 2018 15:16:53 +0000 (15:16 +0000)
commit4a8f7533061bdd575677fc3d7c066a7a3a2b372e
tree9a65dfd8e5a46f327f978cd1520dc19bbff37951
parent9cfb0ac223adf29a09c26ff9a67074b768025385
[Frontend] Allow to use PrecompiledPreamble without calling CanReuse

Summary:
The new method 'OverridePreamble' allows to override the preamble of
any source file without checking if preamble bounds or dependencies
were changed.

This is used for completion in clangd.

Reviewers: bkramer, sammccall

Reviewed By: sammccall

Subscribers: cfe-commits

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

llvm-svn: 322853
clang/include/clang/Frontend/PrecompiledPreamble.h
clang/lib/Frontend/PrecompiledPreamble.cpp