]> granicus.if.org Git - clang/commit
[PCH] When validating that the files coming from PCH did not change, also
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 3 May 2012 21:50:39 +0000 (21:50 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 3 May 2012 21:50:39 +0000 (21:50 +0000)
commitd54dff026b02303a35147224de72bb44cbb53c79
treead4e52eb5d1269f16c3445e34d59475abff01880
parent8b08adb279e7db69c65461f7c0029344dc3e4e5f
[PCH] When validating that the files coming from PCH did not change, also
validate that we didn't override the contents of any of such files.

If this is detected, emit a diagnostic error and recover gracefully
by using the contents of the original file that the PCH was built from.

Part of rdar://11305263

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156107 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSerializationKinds.td
include/clang/Basic/FileManager.h
include/clang/Basic/SourceManager.h
lib/Basic/FileManager.cpp
lib/Basic/SourceManager.cpp
lib/Serialization/ASTReader.cpp
test/PCH/remap-file-from-pch.cpp [new file with mode: 0644]
test/PCH/remap-file-from-pch.cpp.h [new file with mode: 0644]
test/PCH/remap-file-from-pch.cpp.remap.h [new file with mode: 0644]