We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9c0d1b commit 028e55dCopy full SHA for 028e55d
clang-tools-extra/clangd/unittests/tweaks/TweakTests.cpp
@@ -53,7 +53,7 @@ TEST(FileEdits, AbsolutePath) {
53
SourceManager SM(DE, FM);
54
55
for (const auto *Path : RelPaths) {
56
- auto FID = SM.createFileID(*FM.getFile(Path), SourceLocation(),
+ auto FID = SM.createFileID(*FM.getOptionalFileRef(Path), SourceLocation(),
57
clang::SrcMgr::C_User);
58
auto Res = Tweak::Effect::fileEdit(SM, FID, tooling::Replacements());
59
ASSERT_THAT_EXPECTED(Res, llvm::Succeeded());
0 commit comments