Empty preamble is valid for source file which doesn't have any
preprocessor and #includes.
This patch makes clang treat an empty preamble as a normal preamble.
Check: ninja check-clang
A testcase is added in https://reviews.llvm.org/D50627.
Paths
| Differential D50628
[Preamble] Empty preamble is not an error. ClosedPublic Authored by hokein on Aug 13 2018, 3:23 AM.
Details Summary Empty preamble is valid for source file which doesn't have any This patch makes clang treat an empty preamble as a normal preamble. Check: ninja check-clang A testcase is added in https://reviews.llvm.org/D50627.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 13 2018, 4:19 AM Closed by commit rC340029: [Preamble] Empty preamble is not an error. (authored by hokein). · Explain WhyAug 17 2018, 7:25 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 160319 include/clang/Frontend/PrecompiledPreamble.h
lib/Frontend/ASTUnit.cpp
lib/Frontend/PrecompiledPreamble.cpp
|