clang 22.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 48 of file DirectoryEntry.h.
using clang::DirectoryEntryRef::MapEntry = llvm::StringMapEntry<llvm::ErrorOr<DirectoryEntry &>> |
Definition at line 60 of file DirectoryEntry.h.
|
delete |
Referenced by hash_value, and isSameRef().
|
inlineexplicit |
Definition at line 68 of file DirectoryEntry.h.
|
inline |
Definition at line 50 of file DirectoryEntry.h.
Referenced by FileMgr::MapEntryOptionalStorage< DirectoryEntryRef >, clang::FileManager::getFileRef(), and hash_value.
|
inline |
Definition at line 62 of file DirectoryEntry.h.
Referenced by llvm::PointerLikeTypeTraits< clang::DirectoryEntryRef >::getAsVoidPointer().
|
inline |
Definition at line 52 of file DirectoryEntry.h.
Referenced by clang::ASTSourceDescriptor::ASTSourceDescriptor(), clang::CompilerInstance::cloneForModuleCompile(), clang::api_notes::APINotesManager::findAPINotes(), clang::FileManager::getCanonicalName(), clang::api_notes::APINotesManager::getCurrentModuleAPINotes(), clang::DirectoryLookup::getName(), clang::ModuleMap::isHeaderUnavailableInModule(), clang::Preprocessor::LookupEmbedFile(), clang::DirectoryLookup::LookupFile(), clang::HeaderSearch::lookupModuleMapFile(), clang::HeaderSearch::parseAndLoadModuleMapFile(), and clang::ModuleMap::parseModuleMapFile().
|
inline |
Check if RHS referenced the file in exactly the same way.
Definition at line 65 of file DirectoryEntry.h.
References DirectoryEntryRef().
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 87 of file DirectoryEntry.h.
|
friend |
Definition at line 87 of file DirectoryEntry.h.
References getDirEntry().
|
friend |
Hash code is based on the DirectoryEntry, not the specific named reference.
Definition at line 56 of file DirectoryEntry.h.
References DirectoryEntryRef(), getDirEntry(), and llvm::hash_value().
|
friend |
Definition at line 95 of file DirectoryEntry.h.