]> granicus.if.org Git - clang/commit
Allow resolving headers from a PCH even after headers+PCH were moved to another path.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 15 Feb 2011 17:54:22 +0000 (17:54 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 15 Feb 2011 17:54:22 +0000 (17:54 +0000)
commit8e3df4d0864f0a966c20088ca1a29c3398b7639d
tree1c380a3a70b49f586732f44947003562d0a40e08
parent5ac96d5f54a94d57f485de8103eb05a0f19e1c39
Allow resolving headers from a PCH even after headers+PCH were moved to another path.

Store in PCH the directory that the PCH was originally created in.
If a header file is not found at the path that we expect it to be and the PCH file
was moved from its original location, try to resolve the file by assuming that
header+PCH were moved together and the header is in the same place relative to the PCH.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125576 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/FrontendActions.h
include/clang/Serialization/ASTBitCodes.h
include/clang/Serialization/ASTReader.h
include/clang/Serialization/ASTWriter.h
lib/Frontend/ASTUnit.cpp
lib/Frontend/FrontendActions.cpp
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTWriter.cpp
lib/Serialization/GeneratePCH.cpp
test/PCH/headersearch.cpp [new file with mode: 0644]