[clang] [clang] NFC: Remove unused `FileEntry::getLastRef()` (PR #68156)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 3 13:26:19 PDT 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
<details>
<summary>Changes</summary>
The last usage of the deprecated `FileEntry::getLastRef()` was removed in #<!-- -->67838, let's remove it entirely.
---
Full diff: https://github.com/llvm/llvm-project/pull/68156.diff
1 Files Affected:
- (modified) clang/include/clang/Basic/FileEntry.h (-1)
``````````diff
diff --git a/clang/include/clang/Basic/FileEntry.h b/clang/include/clang/Basic/FileEntry.h
index c377aba2c1d2ebd..23237a9326f84b6 100644
--- a/clang/include/clang/Basic/FileEntry.h
+++ b/clang/include/clang/Basic/FileEntry.h
@@ -426,7 +426,6 @@ class FileEntry {
public:
~FileEntry();
StringRef getName() const { return LastRef->getName(); }
- FileEntryRef getLastRef() const { return *LastRef; }
StringRef tryGetRealPathName() const { return RealPathName; }
off_t getSize() const { return Size; }
``````````
</details>
https://github.com/llvm/llvm-project/pull/68156
More information about the cfe-commits
mailing list