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

Methods

DirectoryEntryRef()

Declared at: clang/include/clang/Basic/DirectoryEntry.h:69

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)

Declared at: clang/include/clang/Basic/DirectoryEntry.h:96

Parameters

clang::DirectoryEntryRef::optional_none_tag

DirectoryEntryRef(
    clang::DirectoryEntryRef::dense_map_empty_tag)

Declared at: clang/include/clang/Basic/DirectoryEntry.h:104

Parameters

clang::DirectoryEntryRef::dense_map_empty_tag

DirectoryEntryRef(clang::DirectoryEntryRef::
                      dense_map_tombstone_tag)

Declared at: clang/include/clang/Basic/DirectoryEntry.h:106

Parameters

clang::DirectoryEntryRef::dense_map_tombstone_tag

const clang::DirectoryEntry& getDirEntry() const

Declared at: clang/include/clang/Basic/DirectoryEntry.h:52

const clang::DirectoryEntryRef::MapEntry&
getMapEntry() const

Declared at: clang/include/clang/Basic/DirectoryEntry.h:64

llvm::StringRef getName() const

Declared at: clang/include/clang/Basic/DirectoryEntry.h:54

bool hasOptionalValue() const

Declared at: clang/include/clang/Basic/DirectoryEntry.h:97

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

clang::DirectoryEntryRef RHS

bool isSpecialDenseMapKey() const

Declared at: clang/include/clang/Basic/DirectoryEntry.h:108

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