Skip to content

Commit

Permalink
[clang] Deprecate DirectoryEntry::getName()
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jansvoboda11 committed Jun 15, 2023
1 parent 672b35d commit 462bda1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clang/include/clang/Basic/DirectoryEntry.h
Expand Up @@ -46,6 +46,7 @@ class DirectoryEntry {
StringRef Name; // Name of the directory.

public:
LLVM_DEPRECATED("Use DirectoryEntryRef::getName() instead.", "")
StringRef getName() const { return Name; }
};

Expand Down

0 comments on commit 462bda1

Please sign in to comment.