r355368 - Replace clang::FileData with llvm::vfs::Status

2019-03-05 Thread Harlan Haskins via cfe-commits
Author: harlanhaskins Date: Mon Mar 4 18:27:12 2019 New Revision: 355368 URL: http://llvm.org/viewvc/llvm-project?rev=355368&view=rev Log: Replace clang::FileData with llvm::vfs::Status Summary: FileData was only ever used as a container for the values in llvm::vfs::Status, so they might as well

r358509 - [FileSystemStatCache] Return std::error_code from stat cache methods

2019-04-16 Thread Harlan Haskins via cfe-commits
Author: harlanhaskins Date: Tue Apr 16 10:34:26 2019 New Revision: 358509 URL: http://llvm.org/viewvc/llvm-project?rev=358509&view=rev Log: [FileSystemStatCache] Return std::error_code from stat cache methods Summary: Previously, we would return true/false signifying if the cache/lookup succeeded

r358511 - [FileSystemStatCache] Update test for new FileSystemStatCache API

2019-04-16 Thread Harlan Haskins via cfe-commits
Author: harlanhaskins Date: Tue Apr 16 11:00:43 2019 New Revision: 358511 URL: http://llvm.org/viewvc/llvm-project?rev=358511&view=rev Log: [FileSystemStatCache] Update test for new FileSystemStatCache API Summary: Update this test to return std::error_code instead of LookupResult. Reviewers: ar

r367615 - [clang] Adopt llvm::ErrorOr in FileManager methods

2019-08-01 Thread Harlan Haskins via cfe-commits
Author: harlanhaskins Date: Thu Aug 1 14:31:49 2019 New Revision: 367615 URL: http://llvm.org/viewvc/llvm-project?rev=367615&view=rev Log: [clang] Adopt llvm::ErrorOr in FileManager methods Previously, the FileManager would use NULL returns to signify whether a file existed, but that doesn’t co

r367616 - [clang] Adopt new FileManager error-returning APIs

2019-08-01 Thread Harlan Haskins via cfe-commits
Author: harlanhaskins Date: Thu Aug 1 14:31:56 2019 New Revision: 367616 URL: http://llvm.org/viewvc/llvm-project?rev=367616&view=rev Log: [clang] Adopt new FileManager error-returning APIs Update the callers of FileManager::getFile and FileManager::getDirectory to handle the new llvm::ErrorOr-

[clang-tools-extra] r367617 - [clang-tools-extra] Adopt FileManager's error-returning APIs

2019-08-01 Thread Harlan Haskins via cfe-commits
Author: harlanhaskins Date: Thu Aug 1 14:32:01 2019 New Revision: 367617 URL: http://llvm.org/viewvc/llvm-project?rev=367617&view=rev Log: [clang-tools-extra] Adopt FileManager's error-returning APIs The FileManager has been updated to return llvm::ErrorOr from getFile and getDirectory, this com

r367620 - Fix use-after-move in ClangBasicTests

2019-08-01 Thread Harlan Haskins via cfe-commits
Author: harlanhaskins Date: Thu Aug 1 14:50:16 2019 New Revision: 367620 URL: http://llvm.org/viewvc/llvm-project?rev=367620&view=rev Log: Fix use-after-move in ClangBasicTests Modified: cfe/trunk/unittests/Basic/FileManagerTest.cpp Modified: cfe/trunk/unittests/Basic/FileManagerTest.cpp UR

r367622 - Fix Windows branch of FileManagerTest changes

2019-08-01 Thread Harlan Haskins via cfe-commits
Author: harlanhaskins Date: Thu Aug 1 14:58:56 2019 New Revision: 367622 URL: http://llvm.org/viewvc/llvm-project?rev=367622&view=rev Log: Fix Windows branch of FileManagerTest changes Modified: cfe/trunk/unittests/Basic/FileManagerTest.cpp Modified: cfe/trunk/unittests/Basic/FileManagerTes