diff options
| author | Harlan Haskins <harlan@harlanhaskins.com> | 2019-08-01 21:31:49 +0000 |
|---|---|---|
| committer | Harlan Haskins <harlan@harlanhaskins.com> | 2019-08-01 21:31:49 +0000 |
| commit | 2b41d1ddfc16bbd20185dd4a5847066b6299feeb (patch) | |
| tree | 65e239eb2a7c74eb7a00b2843744b51992834900 /unittests/Tooling/RefactoringTest.cpp | |
| parent | 915379e031d7516315ed375262e76fc82b558da0 (diff) | |
| download | clang-2b41d1ddfc16bbd20185dd4a5847066b6299feeb.tar.gz | |
[clang] Adopt llvm::ErrorOr in FileManager methods
Previously, the FileManager would use NULL returns to signify whether a file existed, but that doesn’t cover permissions issues or anything else that might occur while trying to stat or read a file. Instead, convert getFile and getDirectory into returning llvm::ErrorOr
Signed-off-by: Harlan Haskins <harlan@apple.com>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@367615 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Tooling/RefactoringTest.cpp')
0 files changed, 0 insertions, 0 deletions
