clang API Documentation

Public Member Functions | Friends
clang::FileEntry Class Reference

Cached information about one file (either on disk or in the virtual file system). More...

#include <FileManager.h>

List of all members.

Public Member Functions

 FileEntry ()
 FileEntry (const FileEntry &FE)
const char * getName () const
bool isValid () const
off_t getSize () const
unsigned getUID () const
const llvm::sys::fs::UniqueID & getUniqueID () const
bool isInPCH () const
time_t getModificationTime () const
const DirectoryEntrygetDir () const
 Return the directory the file lives in.
bool operator< (const FileEntry &RHS) const
bool isNamedPipe () const
 Check whether the file is a named pipe (and thus can't be opened by the native FileManager methods).

Friends

class FileManager

Detailed 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.

Definition at line 61 of file FileManager.h.


Constructor & Destructor Documentation

Definition at line 83 of file FileManager.h.

clang::FileEntry::FileEntry ( const FileEntry FE) [inline]

Intentionally does not copy fields that are not set in an uninitialized FileEntry.

Definition at line 91 of file FileManager.h.

References isValid().


Member Function Documentation

const DirectoryEntry* clang::FileEntry::getDir ( ) const [inline]
time_t clang::FileEntry::getModificationTime ( ) const [inline]
const char* clang::FileEntry::getName ( ) const [inline]
off_t clang::FileEntry::getSize ( ) const [inline]
unsigned clang::FileEntry::getUID ( ) const [inline]
const llvm::sys::fs::UniqueID& clang::FileEntry::getUniqueID ( ) const [inline]

Definition at line 100 of file FileManager.h.

Referenced by clang::FileManager::invalidateCache().

bool clang::FileEntry::isInPCH ( ) const [inline]

Definition at line 101 of file FileManager.h.

Referenced by clang::TextDiagnostic::emitDiagnosticLoc().

bool clang::FileEntry::isNamedPipe ( ) const [inline]

Check whether the file is a named pipe (and thus can't be opened by the native FileManager methods).

Definition at line 111 of file FileManager.h.

Referenced by clang::CompilerInstance::InitializeSourceManager().

bool clang::FileEntry::isValid ( ) const [inline]
bool clang::FileEntry::operator< ( const FileEntry RHS) const [inline]

Definition at line 107 of file FileManager.h.


Friends And Related Function Documentation

friend class FileManager [friend]

Definition at line 74 of file FileManager.h.


The documentation for this class was generated from the following file: