clang: clang::DirectoryEntryRef Class Reference (original) (raw)
A reference to a [DirectoryEntry](classclang%5F1%5F1DirectoryEntry.html "Cached information about one directory (either on disk or in the virtual file system).")
that includes the name of the directory as it was accessed by the FileManager's client. More...
#include "[clang/Basic/DirectoryEntry.h](DirectoryEntry%5F8h%5Fsource.html)"
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](classclang%5F1%5F1DirectoryEntry.html "Cached information about one directory (either on disk or in the virtual file system).")
that includes the name of the directory as it was accessed by the FileManager's client.
Definition at line 48 of file DirectoryEntry.h.
◆ MapEntry
clang::DirectoryEntryRef::DirectoryEntryRef ( ) | delete |
---|
◆ DirectoryEntryRef() [2/2]
clang::DirectoryEntryRef::DirectoryEntryRef ( const MapEntry & ME) | inlineexplicit |
---|
◆ getDirEntry()
const DirectoryEntry & clang::DirectoryEntryRef::getDirEntry ( ) const | inline |
---|
◆ getMapEntry()
const MapEntry & clang::DirectoryEntryRef::getMapEntry ( ) const | inline |
---|
◆ getName()
StringRef clang::DirectoryEntryRef::getName ( ) const | inline |
---|
Definition at line 52 of file DirectoryEntry.h.
Referenced by clang::ASTSourceDescriptor::ASTSourceDescriptor(), compileModule(), clang::api_notes::APINotesManager::findAPINotes(), clang::FileManager::getCanonicalName(), clang::api_notes::APINotesManager::getCurrentModuleAPINotes(), clang::DirectoryLookup::getName(), clang::ModuleMap::isHeaderUnavailableInModule(), clang::HeaderSearch::loadModuleMapFile(), clang::Preprocessor::LookupEmbedFile(), clang::DirectoryLookup::LookupFile(), and clang::HeaderSearch::lookupModuleMapFile().
◆ isSameRef()
◆ operator const DirectoryEntry *()
clang::DirectoryEntryRef::operator const DirectoryEntry * ( ) const | 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:
lvalue = rvalue;
lvalue = &rvalue.getDirectoryEntry();
lvalue = rvalue;
FIXME: Once DirectoryEntryRef is "everywhere" and DirectoryEntry::getName has been deleted, delete this implicit conversion.
Definition at line 87 of file DirectoryEntry.h.
◆ FileMgr::MapEntryOptionalStorage< DirectoryEntryRef >
◆ hash_value
◆ llvm::DenseMapInfo< DirectoryEntryRef >
The documentation for this class was generated from the following file:
- include/clang/Basic/DirectoryEntry.h