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

Methods

FileEntry()

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

FileEntry(const clang::FileEntry&)

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

Parameters

const clang::FileEntry&

void closeFile() const

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

const clang::DirectoryEntry* getDir() const

Description

Return the directory the file lives in.

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

clang::FileEntryRef getLastRef() const

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

time_t getModificationTime() const

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

llvm::StringRef getName() const

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

off_t getSize() const

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

unsigned int getUID() const

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

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

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

bool isNamedPipe() const

Description

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

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

~FileEntry()

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