clangd: Migrate to FileEntryRef in TweakTests, NFC

This commit is contained in:
Duncan P. N. Exon Smith 2020-12-09 16:56:08 -08:00
parent f9c0d1b056
commit 028e55d2d4
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ TEST(FileEdits, AbsolutePath) {
SourceManager SM(DE, FM);
for (const auto *Path : RelPaths) {
auto FID = SM.createFileID(*FM.getFile(Path), SourceLocation(),
auto FID = SM.createFileID(*FM.getOptionalFileRef(Path), SourceLocation(),
clang::SrcMgr::C_User);
auto Res = Tweak::Effect::fileEdit(SM, FID, tooling::Replacements());
ASSERT_THAT_EXPECTED(Res, llvm::Succeeded());