]> granicus.if.org Git - clang/commit
Default getFile() to use the last accessed name in the FileEntry.
authorManuel Klimek <klimek@google.com>
Wed, 13 Aug 2014 12:34:41 +0000 (12:34 +0000)
committerManuel Klimek <klimek@google.com>
Wed, 13 Aug 2014 12:34:41 +0000 (12:34 +0000)
commitc16172fafe0358421ddd93be57143e2f60c5646a
tree2b1626bc095bc98a398712b9af795c4bf6c9e6d1
parentb3fae3d65c978e2c36ff369ef8b744675b9faf6f
Default getFile() to use the last accessed name in the FileEntry.

With modules we start accessing headers for the first time while reading
the module map, which often has very different paths from the include
scanning logic.

Using the name by which the file was accessed gets us one step closer to
the right solution, which is using a FileName abstraction that decouples
the name by which a file was accessed from the FileEntry.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215541 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/FileManager.cpp
test/Modules/Inputs/filename/a.h [new file with mode: 0644]
test/Modules/Inputs/filename/module.map [new file with mode: 0644]
test/Modules/filename.cpp [new file with mode: 0644]