diff options
author | Taewook Oh <twoh@fb.com> | 2016-06-13 20:40:21 +0000 |
---|---|---|
committer | Taewook Oh <twoh@fb.com> | 2016-06-13 20:40:21 +0000 |
commit | f42103ce8b38a1a534ae08a5f44ec28a8df034fe (patch) | |
tree | b3648d39a13b48498873a65e81ab754b3b81d90c /clang/lib/Basic/FileManager.cpp | |
parent | 92375f55ed9341cd6ecf8f34f6c1975a1b892a72 (diff) | |
download | bcm5719-llvm-f42103ce8b38a1a534ae08a5f44ec28a8df034fe.tar.gz bcm5719-llvm-f42103ce8b38a1a534ae08a5f44ec28a8df034fe.zip |
Use the name of the file on disk to issue a new diagnostic about non-portable #include and #import paths.
Differential Revision: http://reviews.llvm.org/D19843
Corresponding LLVM change: http://reviews.llvm.org/D19842
Re-commit of r272562 after addressing clang-x86-win2008-selfhost failure.
llvm-svn: 272584
Diffstat (limited to 'clang/lib/Basic/FileManager.cpp')
-rw-r--r-- | clang/lib/Basic/FileManager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Basic/FileManager.cpp b/clang/lib/Basic/FileManager.cpp index c4cc8dc5419..ce9b7e1bb48 100644 --- a/clang/lib/Basic/FileManager.cpp +++ b/clang/lib/Basic/FileManager.cpp @@ -312,6 +312,9 @@ const FileEntry *FileManager::getFile(StringRef Filename, bool openFile, UFE.InPCH = Data.InPCH; UFE.File = std::move(F); UFE.IsValid = true; + if (UFE.File) + if (auto RealPathName = UFE.File->getName()) + UFE.RealPathName = *RealPathName; return &UFE; } |