[cfe-dev] RFC: Improving Clang's FileManager

Harlan Haskins via cfe-dev cfe-dev at lists.llvm.org
Wed Jul 31 13:34:19 PDT 2019

> Additionally to fixing the issue described above, Harlan (CCed) and I would like to also perform the following minor cleanups and improvements:
> - Start using error_code/ErrorOr for FileManager for improved API.

As a first step of this refactor, I’ve posted a patch that changes FileManager::getFile and FileManager::getDirectory to use llvm::ErrorOr.

https://reviews.llvm.org/D65534 <https://reviews.llvm.org/D65534>

It’s a big patch, but the bulk of the changes are updating clients throughout clang, lldb, and clang-tools-extra.

— Harlan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190731/385601b1/attachment.html>

More information about the cfe-dev mailing list