]> granicus.if.org Git - clang/commit
[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)
commitca37e4fc6c52875fd2dbbf00dac4640288f48b72
tree41d34a4be8690a75bd261c12add09d75c840b555
parent43e5d26a5656cb0fec35bee609c669e429699d7d
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@322853 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/PrecompiledPreamble.h
lib/Frontend/PrecompiledPreamble.cpp