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; } }; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits