[clang-tools-extra] Adopt FileManager's error-returning APIs
authorHarlan Haskins <harlan@harlanhaskins.com>
Thu, 1 Aug 2019 21:32:01 +0000 (21:32 +0000)
committerHarlan Haskins <harlan@harlanhaskins.com>
Thu, 1 Aug 2019 21:32:01 +0000 (21:32 +0000)
commita02f85768d2d1a77c7735ddd43226e1be51f3730
tree331b92c088cb3249848f387a358206770da95180
parent8d323d150610bed1feeb79d7a29c9958a4c8bcac
[clang-tools-extra] Adopt FileManager's error-returning APIs

The FileManager has been updated to return llvm::ErrorOr from getFile
and getDirectory, this commit updates all the callers of those APIs from
clang.

llvm-svn: 367617
clang-tools-extra/clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp
clang-tools-extra/clang-change-namespace/tool/ClangChangeNamespace.cpp
clang-tools-extra/clang-include-fixer/IncludeFixer.cpp
clang-tools-extra/clang-move/Move.cpp
clang-tools-extra/clang-move/tool/ClangMove.cpp
clang-tools-extra/clang-reorder-fields/tool/ClangReorderFields.cpp
clang-tools-extra/clang-tidy/ClangTidy.cpp
clang-tools-extra/clangd/ClangdUnit.cpp
clang-tools-extra/clangd/SourceCode.cpp
clang-tools-extra/clangd/index/SymbolCollector.cpp
clang-tools-extra/modularize/ModularizeUtilities.cpp