[llvm-branch-commits] [clang-tools-extra] 028e55d - clangd: Migrate to FileEntryRef in TweakTests, NFC
Duncan P. N. Exon Smith via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Dec 9 17:04:56 PST 2020
Author: Duncan P. N. Exon Smith
Date: 2020-12-09T17:00:42-08:00
New Revision: 028e55d2d411f19e193e3d5df589162a317ab5f1
URL: https://github.com/llvm/llvm-project/commit/028e55d2d411f19e193e3d5df589162a317ab5f1
DIFF: https://github.com/llvm/llvm-project/commit/028e55d2d411f19e193e3d5df589162a317ab5f1.diff
LOG: clangd: Migrate to FileEntryRef in TweakTests, NFC
Added:
Modified:
clang-tools-extra/clangd/unittests/tweaks/TweakTests.cpp
Removed:
################################################################################
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());
More information about the llvm-branch-commits
mailing list