This revision was automatically updated to reflect the committed changes.
Closed by commit rG494aacd72c6a: Tooling: Migrate some tests to FileEntryRef,
NFC (authored by dexonsmith).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92967/new/
https://reviews.llvm.org/D92967
Files:
clang/unittests/Tooling/RefactoringTest.cpp
clang/unittests/Tooling/RewriterTestContext.h
Index: clang/unittests/Tooling/RewriterTestContext.h
===================================================================
--- clang/unittests/Tooling/RewriterTestContext.h
+++ clang/unittests/Tooling/RewriterTestContext.h
@@ -70,7 +70,7 @@
llvm::MemoryBuffer::getMemBuffer(Content);
InMemoryFileSystem->addFile(Name, 0, std::move(Source));
- auto Entry = Files.getFile(Name);
+ auto Entry = Files.getOptionalFileRef(Name);
assert(Entry);
return Sources.createFileID(*Entry, SourceLocation(), SrcMgr::C_User);
}
@@ -87,7 +87,7 @@
llvm::raw_fd_ostream OutStream(FD, true);
OutStream << Content;
OutStream.close();
- auto File = Files.getFile(Path);
+ auto File = Files.getOptionalFileRef(Path);
assert(File);
StringRef Found =
Index: clang/unittests/Tooling/RefactoringTest.cpp
===================================================================
--- clang/unittests/Tooling/RefactoringTest.cpp
+++ clang/unittests/Tooling/RefactoringTest.cpp
@@ -608,7 +608,7 @@
llvm::raw_fd_ostream OutStream(FD, true);
OutStream << Content;
OutStream.close();
- auto File = Context.Files.getFile(Path);
+ auto File = Context.Files.getOptionalFileRef(Path);
assert(File);
StringRef Found =
Index: clang/unittests/Tooling/RewriterTestContext.h
===================================================================
--- clang/unittests/Tooling/RewriterTestContext.h
+++ clang/unittests/Tooling/RewriterTestContext.h
@@ -70,7 +70,7 @@
llvm::MemoryBuffer::getMemBuffer(Content);
InMemoryFileSystem->addFile(Name, 0, std::move(Source));
- auto Entry = Files.getFile(Name);
+ auto Entry = Files.getOptionalFileRef(Name);
assert(Entry);
return Sources.createFileID(*Entry, SourceLocation(), SrcMgr::C_User);
}
@@ -87,7 +87,7 @@
llvm::raw_fd_ostream OutStream(FD, true);
OutStream << Content;
OutStream.close();
- auto File = Files.getFile(Path);
+ auto File = Files.getOptionalFileRef(Path);
assert(File);
StringRef Found =
Index: clang/unittests/Tooling/RefactoringTest.cpp
===================================================================
--- clang/unittests/Tooling/RefactoringTest.cpp
+++ clang/unittests/Tooling/RefactoringTest.cpp
@@ -608,7 +608,7 @@
llvm::raw_fd_ostream OutStream(FD, true);
OutStream << Content;
OutStream.close();
- auto File = Context.Files.getFile(Path);
+ auto File = Context.Files.getOptionalFileRef(Path);
assert(File);
StringRef Found =
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits