class FileEntry
Declaration
class FileEntry { /* full declaration omitted */ };Description
Cached information about one file (either on disk or in the virtual file system). If the 'File' member is valid, then this FileEntry has an open file descriptor for the file.
Declared at: clang/include/clang/Basic/FileEntry.h:330
Member Variables
- private std::string RealPathName
- private off_t Size = 0
- private time_t ModTime = 0
- private const clang::DirectoryEntry* Dir = nullptr
- private llvm::sys::fs::UniqueID UniqueID
- private unsigned int UID = 0
- private bool IsNamedPipe = false
- private std::unique_ptr<llvm::vfs::File> File
- The open file, if it is owned by the \p FileEntry.
- private std::unique_ptr<llvm::MemoryBuffer> Content
- The file content, if it is owned by the \p FileEntry.
- private Optional<clang::FileEntryRef> LastRef
Method Overview
- private FileEntry()
- private FileEntry(const clang::FileEntry &)
- public void closeFile() const
- public const clang::DirectoryEntry * getDir() const
- public clang::FileEntryRef getLastRef() const
- public time_t getModificationTime() const
- public llvm::StringRef getName() const
- public off_t getSize() const
- public unsigned int getUID() const
- public const llvm::sys::fs::UniqueID & getUniqueID() const
- public bool isNamedPipe() const
- public llvm::StringRef tryGetRealPathName() const
- public ~FileEntry()
Methods
¶FileEntry()
FileEntry()Declared at: clang/include/clang/Basic/FileEntry.h:333
¶FileEntry(const clang::FileEntry&)
FileEntry(const clang::FileEntry&)Declared at: clang/include/clang/Basic/FileEntry.h:334
Parameters
- const clang::FileEntry&
¶void closeFile() const
void closeFile() constDeclared at: clang/include/clang/Basic/FileEntry.h:377
¶const clang::DirectoryEntry* getDir() const
const clang::DirectoryEntry* getDir() constDescription
Return the directory the file lives in.
Declared at: clang/include/clang/Basic/FileEntry.h:371
¶clang::FileEntryRef getLastRef() const
clang::FileEntryRef getLastRef() constDeclared at: clang/include/clang/Basic/FileEntry.h:362
¶time_t getModificationTime() const
time_t getModificationTime() constDeclared at: clang/include/clang/Basic/FileEntry.h:368
¶llvm::StringRef getName() const
llvm::StringRef getName() constDeclared at: clang/include/clang/Basic/FileEntry.h:361
¶off_t getSize() const
off_t getSize() constDeclared at: clang/include/clang/Basic/FileEntry.h:365
¶unsigned int getUID() const
unsigned int getUID() constDeclared at: clang/include/clang/Basic/FileEntry.h:366
¶const llvm::sys::fs::UniqueID& getUniqueID() const
const llvm::sys::fs::UniqueID& getUniqueID() constDeclared at: clang/include/clang/Basic/FileEntry.h:367
¶bool isNamedPipe() const
bool isNamedPipe() constDescription
Check whether the file is a named pipe (and thus can't be opened by the native FileManager methods).
Declared at: clang/include/clang/Basic/FileEntry.h:375
¶llvm::StringRef tryGetRealPathName() const
llvm::StringRef tryGetRealPathName() constDeclared at: clang/include/clang/Basic/FileEntry.h:364
¶~FileEntry()
~FileEntry()Declared at: clang/include/clang/Basic/FileEntry.h:360