HomePhabricator

[clang] Adopt new FileManager error-returning APIs

Description

[clang] Adopt new FileManager error-returning APIs

Update the callers of FileManager::getFile and FileManager::getDirectory to handle the new llvm::ErrorOr-returning methods.

Signed-off-by: Harlan Haskins <harlan@apple.com>

Details

Committed
harlanhaskinsAug 1 2019, 2:31 PM
Parents
rL367615: [clang] Adopt llvm::ErrorOr in FileManager methods
Branches
Unknown
Tags
Unknown

Event Timeline

This appears to have missed lib/Index/SimpleFormatContext.h.
AFAICT it's unused and untested, but it used to parse and now it doesn't. It should probably either be updated or removed from the tree.