jansvoboda11 created this revision. jansvoboda11 added reviewers: benlangmuir, bnbarham. Herald added a subscriber: ributzka. Herald added a project: All. jansvoboda11 requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.
This finally oficially 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 <https://reviews.llvm.org/D151922>. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D151927 Files: clang/include/clang/Basic/DirectoryEntry.h Index: clang/include/clang/Basic/DirectoryEntry.h =================================================================== --- clang/include/clang/Basic/DirectoryEntry.h +++ clang/include/clang/Basic/DirectoryEntry.h @@ -46,6 +46,7 @@ StringRef Name; // Name of the directory. public: + LLVM_DEPRECATED("Use DirectoryEntryRef::getName() instead.", "") StringRef getName() const { return Name; } };
Index: clang/include/clang/Basic/DirectoryEntry.h =================================================================== --- clang/include/clang/Basic/DirectoryEntry.h +++ clang/include/clang/Basic/DirectoryEntry.h @@ -46,6 +46,7 @@ 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