class FileEntryRef

Declaration

class FileEntryRef { /* full declaration omitted */ };

Description

A reference to a \c FileEntry that includes the name of the file as it was accessed by the FileManager's client.

Declared at: clang/include/clang/Basic/FileEntry.h:60

Member Variables

private const clang::FileEntryRef::MapEntry* ME

Method Overview

Methods

FileEntryRef(
    clang::FileEntryRef::dense_map_empty_tag)

Declared at: clang/include/clang/Basic/FileEntry.h:173

Parameters

clang::FileEntryRef::dense_map_empty_tag

FileEntryRef(
    clang::FileEntryRef::optional_none_tag)

Declared at: clang/include/clang/Basic/FileEntry.h:165

Parameters

clang::FileEntryRef::optional_none_tag

FileEntryRef(
    const clang::FileEntryRef::MapEntry& ME)

Declared at: clang/include/clang/Basic/FileEntry.h:150

Parameters

const clang::FileEntryRef::MapEntry& ME

FileEntryRef()

Declared at: clang/include/clang/Basic/FileEntry.h:149

FileEntryRef(
    clang::FileEntryRef::dense_map_tombstone_tag)

Declared at: clang/include/clang/Basic/FileEntry.h:175

Parameters

clang::FileEntryRef::dense_map_tombstone_tag

inline void closeFile() const

Declared at: clang/include/clang/Basic/FileEntry.h:73

clang::DirectoryEntryRef getDir() const

Declared at: clang/include/clang/Basic/FileEntry.h:66

const clang::FileEntry& getFileEntry() const

Declared at: clang/include/clang/Basic/FileEntry.h:63

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

Description

Expose the underlying MapEntry to simplify packing in a PointerIntPair or PointerUnion and allow construction in Optional.

Declared at: clang/include/clang/Basic/FileEntry.h:158

inline time_t getModificationTime() const

Declared at: clang/include/clang/Basic/FileEntry.h:71

llvm::StringRef getName() const

Declared at: clang/include/clang/Basic/FileEntry.h:62

inline off_t getSize() const

Declared at: clang/include/clang/Basic/FileEntry.h:68

inline unsigned int getUID() const

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

inline const llvm::sys::fs::UniqueID&
getUniqueID() const

Declared at: clang/include/clang/Basic/FileEntry.h:70

bool hasOptionalValue() const

Declared at: clang/include/clang/Basic/FileEntry.h:166

inline bool isNamedPipe() const

Declared at: clang/include/clang/Basic/FileEntry.h:72

bool isSameRef(
    const clang::FileEntryRef& RHS) const

Description

Check if RHS referenced the file in exactly the same way.

Declared at: clang/include/clang/Basic/FileEntry.h:128

Parameters

const clang::FileEntryRef& RHS

bool isSpecialDenseMapKey() const

Declared at: clang/include/clang/Basic/FileEntry.h:177

const clang::FileEntry*
operator const clang::FileEntry*() const

Description

Allow FileEntryRef to degrade into 'const FileEntry*' to facilitate incremental adoption. The goal is to avoid code churn due to dances like the following: FIXME: Once FileEntryRef is "everywhere" and FileEntry::LastRef and FileEntry::getName have been deleted, delete this implicit conversion.

Declared at: clang/include/clang/Basic/FileEntry.h:147