[PATCH] D20338: [PCH] Fixed overridden files always invalidating preamble even when unchanged

Cameron via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 3 10:21:05 PDT 2016


cameron314 updated the summary for this revision.
cameron314 removed rL LLVM as the repository for this revision.
cameron314 updated this revision to Diff 59577.
cameron314 added a comment.

It took some modifications to the ASTUnit to support a virtual file system with a PCH parse/reparse (preliminary VFS support had already been added in http://reviews.llvm.org/rL249410 but it did not support initial parses using PCHs, nor reparses), but I was finally able to write a test that checks that the reparse actually uses the PCH with my fix, and rejects the PCH (rereading everything and failing the test) without it.


http://reviews.llvm.org/D20338

Files:
  include/clang/Basic/FileManager.h
  include/clang/Frontend/ASTUnit.h
  lib/Basic/FileManager.cpp
  lib/Frontend/ASTUnit.cpp
  unittests/Frontend/CMakeLists.txt
  unittests/Frontend/PchPreambleTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20338.59577.patch
Type: text/x-patch
Size: 16357 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160603/5dbb073d/attachment.bin>


More information about the cfe-commits mailing list