A reference to a FileEntry
that includes the name of the file as it was accessed by the FileManager's client.
More...
#include "clang/Basic/FileEntry.h"
A reference to a FileEntry
that includes the name of the file as it was accessed by the FileManager's client.
Definition at line 60 of file FileEntry.h.
◆ MapEntry
◆ FileEntryRef() [1/2]
clang::FileEntryRef::FileEntryRef |
( |
| ) |
|
|
delete |
◆ FileEntryRef() [2/2]
clang::FileEntryRef::FileEntryRef |
( |
const MapEntry & |
ME | ) |
|
|
inlineexplicit |
◆ closeFile()
void clang::FileEntryRef::closeFile |
( |
| ) |
const |
|
inline |
◆ getDir()
◆ getFileEntry()
const FileEntry& clang::FileEntryRef::getFileEntry |
( |
| ) |
const |
|
inline |
◆ getMapEntry()
Expose the underlying MapEntry to simplify packing in a PointerIntPair or PointerUnion and allow construction in Optional.
Definition at line 158 of file FileEntry.h.
◆ getModificationTime()
time_t clang::FileEntryRef::getModificationTime |
( |
| ) |
const |
|
inline |
◆ getName()
StringRef clang::FileEntryRef::getName |
( |
| ) |
const |
|
inline |
◆ getSize()
off_t clang::FileEntryRef::getSize |
( |
| ) |
const |
|
inline |
◆ getUID()
unsigned clang::FileEntryRef::getUID |
( |
| ) |
const |
|
inline |
◆ getUniqueID()
const llvm::sys::fs::UniqueID & clang::FileEntryRef::getUniqueID |
( |
| ) |
const |
|
inline |
◆ isNamedPipe()
bool clang::FileEntryRef::isNamedPipe |
( |
| ) |
const |
|
inline |
◆ isSameRef()
◆ operator const FileEntry *()
clang::FileEntryRef::operator const FileEntry * |
( |
| ) |
const |
|
inline |
Allow FileEntryRef to degrade into 'const FileEntry*' to facilitate incremental adoption.
The goal is to avoid code churn due to dances like the following:
lvalue = rvalue;
lvalue = &rvalue.getFileEntry();
lvalue = rvalue;
FIXME: Once FileEntryRef is "everywhere" and FileEntry::LastRef and FileEntry::getName have been deleted, delete this implicit conversion.
Definition at line 147 of file FileEntry.h.
◆ FileMgr::MapEntryOptionalStorage< FileEntryRef >
◆ hash_value
Hash code is based on the FileEntry, not the specific named reference, just like operator==.
Definition at line 98 of file FileEntry.h.
◆ llvm::DenseMapInfo< FileEntryRef >
◆ operator!= [1/3]
◆ operator!= [2/3]
◆ operator!= [3/3]
◆ operator== [1/3]
◆ operator== [2/3]
◆ operator== [3/3]
Check if the underlying FileEntry is the same, intentially ignoring whether the file was referenced with the same spelling of the filename.
Definition at line 77 of file FileEntry.h.
The documentation for this class was generated from the following file: