clang 18.0.0git
|
A reference to a DirectoryEntry
that includes the name of the directory as it was accessed by the FileManager's client.
More...
#include "clang/Basic/DirectoryEntry.h"
Public Types | |
using | MapEntry = llvm::StringMapEntry< llvm::ErrorOr< DirectoryEntry & > > |
Public Member Functions | |
const DirectoryEntry & | getDirEntry () const |
StringRef | getName () const |
const MapEntry & | getMapEntry () const |
bool | isSameRef (DirectoryEntryRef RHS) const |
Check if RHS referenced the file in exactly the same way. | |
DirectoryEntryRef ()=delete | |
DirectoryEntryRef (const MapEntry &ME) | |
operator const DirectoryEntry * () const | |
Allow DirectoryEntryRef to degrade into 'const DirectoryEntry*' to facilitate incremental adoption. | |
Friends | |
class | FileMgr::MapEntryOptionalStorage< DirectoryEntryRef > |
struct | llvm::DenseMapInfo< DirectoryEntryRef > |
llvm::hash_code | hash_value (DirectoryEntryRef Ref) |
Hash code is based on the DirectoryEntry, not the specific named reference. | |
A reference to a DirectoryEntry
that includes the name of the directory as it was accessed by the FileManager's client.
Definition at line 55 of file DirectoryEntry.h.
using clang::DirectoryEntryRef::MapEntry = llvm::StringMapEntry<llvm::ErrorOr<DirectoryEntry &> > |
Definition at line 67 of file DirectoryEntry.h.
|
delete |
|
inlineexplicit |
Definition at line 75 of file DirectoryEntry.h.
|
inline |
Definition at line 57 of file DirectoryEntry.h.
Referenced by clang::FileManager::getFileRef().
|
inline |
Definition at line 69 of file DirectoryEntry.h.
Referenced by llvm::PointerLikeTypeTraits< clang::DirectoryEntryRef >::getAsVoidPointer().
|
inline |
Definition at line 59 of file DirectoryEntry.h.
Referenced by clang::api_notes::APINotesManager::findAPINotes(), clang::FileManager::getCanonicalName(), clang::DirectoryLookup::getName(), clang::ModuleMap::isHeaderUnavailableInModule(), clang::HeaderSearch::loadModuleMapFile(), clang::DirectoryLookup::LookupFile(), and clang::HeaderSearch::lookupModuleMapFile().
|
inline |
Check if RHS referenced the file in exactly the same way.
Definition at line 72 of file DirectoryEntry.h.
Referenced by llvm::DenseMapInfo< clang::DirectoryEntryRef >::isEqual().
|
inline |
Allow DirectoryEntryRef to degrade into 'const DirectoryEntry*' to facilitate incremental adoption.
The goal is to avoid code churn due to dances like the following:
FIXME: Once DirectoryEntryRef is "everywhere" and DirectoryEntry::getName has been deleted, delete this implicit conversion.
Definition at line 94 of file DirectoryEntry.h.
|
friend |
Definition at line 94 of file DirectoryEntry.h.
|
friend |
Hash code is based on the DirectoryEntry, not the specific named reference.
Definition at line 63 of file DirectoryEntry.h.
|
friend |
Definition at line 102 of file DirectoryEntry.h.