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
- private FileEntryRef(clang::FileEntryRef::dense_map_empty_tag)
- private FileEntryRef(clang::FileEntryRef::optional_none_tag)
- public FileEntryRef(const clang::FileEntryRef::MapEntry & ME)
- public FileEntryRef()
- private FileEntryRef(clang::FileEntryRef::dense_map_tombstone_tag)
- public inline void closeFile() const
- public clang::DirectoryEntryRef getDir() const
- public const clang::FileEntry & getFileEntry() const
- public const clang::FileEntryRef::MapEntry & getMapEntry() const
- public inline time_t getModificationTime() const
- public llvm::StringRef getName() const
- public inline off_t getSize() const
- public inline unsigned int getUID() const
- public inline const llvm::sys::fs::UniqueID & getUniqueID() const
- private bool hasOptionalValue() const
- public inline bool isNamedPipe() const
- public bool isSameRef(const clang::FileEntryRef & RHS) const
- private bool isSpecialDenseMapKey() const
- public const clang::FileEntry * operator const clang::FileEntry *() const
Methods
¶FileEntryRef(
clang::FileEntryRef::dense_map_empty_tag)
FileEntryRef(
clang::FileEntryRef::dense_map_empty_tag)
Declared at: clang/include/clang/Basic/FileEntry.h:173
Parameters
¶FileEntryRef(
clang::FileEntryRef::optional_none_tag)
FileEntryRef(
clang::FileEntryRef::optional_none_tag)
Declared at: clang/include/clang/Basic/FileEntry.h:165
Parameters
¶FileEntryRef(
const clang::FileEntryRef::MapEntry& ME)
FileEntryRef(
const clang::FileEntryRef::MapEntry& ME)
Declared at: clang/include/clang/Basic/FileEntry.h:150
Parameters
- const clang::FileEntryRef::MapEntry& ME
¶FileEntryRef()
FileEntryRef()
Declared at: clang/include/clang/Basic/FileEntry.h:149
¶FileEntryRef(
clang::FileEntryRef::dense_map_tombstone_tag)
FileEntryRef(
clang::FileEntryRef::dense_map_tombstone_tag)
Declared at: clang/include/clang/Basic/FileEntry.h:175
Parameters
¶inline void closeFile() const
inline void closeFile() const
Declared at: clang/include/clang/Basic/FileEntry.h:73
¶clang::DirectoryEntryRef getDir() const
clang::DirectoryEntryRef getDir() const
Declared at: clang/include/clang/Basic/FileEntry.h:66
¶const clang::FileEntry& getFileEntry() const
const clang::FileEntry& getFileEntry() const
Declared at: clang/include/clang/Basic/FileEntry.h:63
¶const clang::FileEntryRef::MapEntry& getMapEntry()
const
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
inline time_t getModificationTime() const
Declared at: clang/include/clang/Basic/FileEntry.h:71
¶llvm::StringRef getName() const
llvm::StringRef getName() const
Declared at: clang/include/clang/Basic/FileEntry.h:62
¶inline off_t getSize() const
inline off_t getSize() const
Declared at: clang/include/clang/Basic/FileEntry.h:68
¶inline unsigned int getUID() const
inline unsigned int getUID() const
Declared at: clang/include/clang/Basic/FileEntry.h:69
¶inline const llvm::sys::fs::UniqueID&
getUniqueID() const
inline const llvm::sys::fs::UniqueID&
getUniqueID() const
Declared at: clang/include/clang/Basic/FileEntry.h:70
¶bool hasOptionalValue() const
bool hasOptionalValue() const
Declared at: clang/include/clang/Basic/FileEntry.h:166
¶inline bool isNamedPipe() const
inline bool isNamedPipe() const
Declared at: clang/include/clang/Basic/FileEntry.h:72
¶bool isSameRef(
const clang::FileEntryRef& RHS) const
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
bool isSpecialDenseMapKey() const
Declared at: clang/include/clang/Basic/FileEntry.h:177
¶const clang::FileEntry*
operator const clang::FileEntry*() const
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