[clang] 462bda1 - [clang] Deprecate `DirectoryEntry::getName()`
Jan Svoboda via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 15 03:16:49 PDT 2023
Author: Jan Svoboda
Date: 2023-06-15T12:14:41+02:00
New Revision: 462bda1d562acc5a907eafe0afeb79556101c65d
URL: https://github.com/llvm/llvm-project/commit/462bda1d562acc5a907eafe0afeb79556101c65d
DIFF: https://github.com/llvm/llvm-project/commit/462bda1d562acc5a907eafe0afeb79556101c65d.diff
LOG: [clang] Deprecate `DirectoryEntry::getName()`
This finally officially deprecates `DirectoryEntry::getName()`. I checked no usages remain in targets built by any of `check-clang`, `check-clang-tools`, `check-clang-extra`. There are probably some remaining usages in places like LLDB and other clients. This will give them a chance to transition to `DirectoryEntryRef::getName()` before we remove the function altogether.
Depends on D151922.
Reviewed By: benlangmuir
Differential Revision: https://reviews.llvm.org/D151927
Added:
Modified:
clang/include/clang/Basic/DirectoryEntry.h
Removed:
################################################################################
diff --git a/clang/include/clang/Basic/DirectoryEntry.h b/clang/include/clang/Basic/DirectoryEntry.h
index 6c8da1213655a..6580e54e3c58b 100644
--- a/clang/include/clang/Basic/DirectoryEntry.h
+++ b/clang/include/clang/Basic/DirectoryEntry.h
@@ -46,6 +46,7 @@ class DirectoryEntry {
StringRef Name; // Name of the directory.
public:
+ LLVM_DEPRECATED("Use DirectoryEntryRef::getName() instead.", "")
StringRef getName() const { return Name; }
};
More information about the cfe-commits
mailing list