From 028e55d2d411f19e193e3d5df589162a317ab5f1 Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Wed, 9 Dec 2020 16:56:08 -0800 Subject: [PATCH] clangd: Migrate to FileEntryRef in TweakTests, NFC --- clang-tools-extra/clangd/unittests/tweaks/TweakTests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang-tools-extra/clangd/unittests/tweaks/TweakTests.cpp b/clang-tools-extra/clangd/unittests/tweaks/TweakTests.cpp index cb0b38dc99ec..8c8dc5530e09 100644 --- a/clang-tools-extra/clangd/unittests/tweaks/TweakTests.cpp +++ b/clang-tools-extra/clangd/unittests/tweaks/TweakTests.cpp @@ -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());