diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2024-09-25 10:36:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-25 10:36:44 -0700 |
commit | b1aea98cfa357e23f4bb52232da5f41781f23bff (patch) | |
tree | 7fc6ae22d4317dfaafa1f01432265d566b89c67a /clang/unittests/Frontend/CompilerInstanceTest.cpp | |
parent | abe0dd195a3b2630afdc5c1c233eb2a068b2d72f (diff) | |
download | llvm-b1aea98cfa357e23f4bb52232da5f41781f23bff.zip llvm-b1aea98cfa357e23f4bb52232da5f41781f23bff.tar.gz llvm-b1aea98cfa357e23f4bb52232da5f41781f23bff.tar.bz2 |
[clang] Make deprecations of some `FileManager` APIs formal (#110014)
Some `FileManager` APIs still return `{File,Directory}Entry` instead of
the preferred `{File,Directory}EntryRef`. These are documented to be
deprecated, but don't have the attribute that warns on their usage. This
PR marks them as such with `LLVM_DEPRECATED()` and replaces their usage
with the recommended counterparts. NFCI.
Diffstat (limited to 'clang/unittests/Frontend/CompilerInstanceTest.cpp')
-rw-r--r-- | clang/unittests/Frontend/CompilerInstanceTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/unittests/Frontend/CompilerInstanceTest.cpp b/clang/unittests/Frontend/CompilerInstanceTest.cpp index 8bc705d..5cf548e9 100644 --- a/clang/unittests/Frontend/CompilerInstanceTest.cpp +++ b/clang/unittests/Frontend/CompilerInstanceTest.cpp @@ -71,7 +71,7 @@ TEST(CompilerInstance, DefaultVFSOverlayFromInvocation) { // Check if the virtual file exists which means that our VFS is used by the // CompilerInstance. - ASSERT_TRUE(Instance.getFileManager().getFile("vfs-virtual.file")); + ASSERT_TRUE(Instance.getFileManager().getOptionalFileRef("vfs-virtual.file")); } TEST(CompilerInstance, AllowDiagnosticLogWithUnownedDiagnosticConsumer) { |