Update SourceManager::getOrCreateFileID to take a FileEntryRef and
migrate all the callers (mostly calling
FileManager::getOptionalFileRef). Also drop the FileEntry* version
of SourceManager::createFileID since this was the last remaining use
of it.
Details
Details
- Reviewers
arphaman jansvoboda11 JDevlieghere
Diff Detail
Diff Detail
clang-format: please reformat the code
- FileEntryRef HeaderFile = - FileMgr.getVirtualFileRef("/test-header.h", HeaderBuf->getBufferSize(), 0); + FileEntryRef HeaderFile = FileMgr.getVirtualFileRef( + "/test-header.h", HeaderBuf->getBufferSize(), 0);