class DirectoryEntryRef
Declaration
class DirectoryEntryRef { /* full declaration omitted */ };
Description
A reference to a \c DirectoryEntry that includes the name of the directory as it was accessed by the FileManager's client.
Declared at: clang/include/clang/Basic/DirectoryEntry.h:50
Member Variables
- private const clang::DirectoryEntryRef::MapEntry* ME
Method Overview
- public DirectoryEntryRef()
- public DirectoryEntryRef(const clang::DirectoryEntryRef::MapEntry & ME)
- private DirectoryEntryRef(clang::DirectoryEntryRef::optional_none_tag)
- private DirectoryEntryRef(clang::DirectoryEntryRef::dense_map_empty_tag)
- private DirectoryEntryRef(clang::DirectoryEntryRef::dense_map_tombstone_tag)
- public const clang::DirectoryEntry & getDirEntry() const
- public const clang::DirectoryEntryRef::MapEntry & getMapEntry() const
- public llvm::StringRef getName() const
- private bool hasOptionalValue() const
- public bool isSameRef(clang::DirectoryEntryRef RHS) const
- private bool isSpecialDenseMapKey() const
- public const clang::DirectoryEntry * operator const clang::DirectoryEntry *() const
Methods
¶DirectoryEntryRef()
DirectoryEntryRef()
Declared at: clang/include/clang/Basic/DirectoryEntry.h:69
¶DirectoryEntryRef(
const clang::DirectoryEntryRef::MapEntry& ME)
DirectoryEntryRef(
const clang::DirectoryEntryRef::MapEntry& ME)
Declared at: clang/include/clang/Basic/DirectoryEntry.h:70
Parameters
- const clang::DirectoryEntryRef::MapEntry& ME
¶DirectoryEntryRef(
clang::DirectoryEntryRef::optional_none_tag)
DirectoryEntryRef(
clang::DirectoryEntryRef::optional_none_tag)
Declared at: clang/include/clang/Basic/DirectoryEntry.h:96
Parameters
¶DirectoryEntryRef(
clang::DirectoryEntryRef::dense_map_empty_tag)
DirectoryEntryRef(
clang::DirectoryEntryRef::dense_map_empty_tag)
Declared at: clang/include/clang/Basic/DirectoryEntry.h:104
Parameters
¶DirectoryEntryRef(clang::DirectoryEntryRef::
dense_map_tombstone_tag)
DirectoryEntryRef(clang::DirectoryEntryRef::
dense_map_tombstone_tag)
Declared at: clang/include/clang/Basic/DirectoryEntry.h:106
Parameters
¶const clang::DirectoryEntry& getDirEntry() const
const clang::DirectoryEntry& getDirEntry() const
Declared at: clang/include/clang/Basic/DirectoryEntry.h:52
¶const clang::DirectoryEntryRef::MapEntry&
getMapEntry() const
const clang::DirectoryEntryRef::MapEntry&
getMapEntry() const
Declared at: clang/include/clang/Basic/DirectoryEntry.h:64
¶llvm::StringRef getName() const
llvm::StringRef getName() const
Declared at: clang/include/clang/Basic/DirectoryEntry.h:54
¶bool hasOptionalValue() const
bool hasOptionalValue() const
Declared at: clang/include/clang/Basic/DirectoryEntry.h:97
¶bool isSameRef(clang::DirectoryEntryRef RHS) const
bool isSameRef(clang::DirectoryEntryRef RHS) const
Description
Check if RHS referenced the file in exactly the same way.
Declared at: clang/include/clang/Basic/DirectoryEntry.h:67
Parameters
¶bool isSpecialDenseMapKey() const
bool isSpecialDenseMapKey() const
Declared at: clang/include/clang/Basic/DirectoryEntry.h:108
¶const clang::DirectoryEntry*
operator const clang::DirectoryEntry*() const
const clang::DirectoryEntry*
operator const clang::DirectoryEntry*() const
Description
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.
Declared at: clang/include/clang/Basic/DirectoryEntry.h:89