clang API Documentation

Public Member Functions | Public Attributes
clang::vfs::Status Class Reference

The result of a status operation. More...

#include <VirtualFileSystem.h>

Collaboration diagram for clang::vfs::Status:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Status ()
 Status (const llvm::sys::fs::file_status &Status)
 Status (StringRef Name, StringRef RealName, llvm::sys::fs::UniqueID UID, llvm::sys::TimeValue MTime, uint32_t User, uint32_t Group, uint64_t Size, llvm::sys::fs::file_type Type, llvm::sys::fs::perms Perms)
StringRef getName () const
 Returns the name that should be used for this file or directory.
void setName (StringRef N)
bool equivalent (const Status &Other) const
bool isDirectory () const
bool isRegularFile () const
bool isOther () const
bool isSymlink () const
bool isStatusKnown () const
bool exists () const
Status interface from llvm::sys::fs
llvm::sys::fs::file_type getType () const
llvm::sys::fs::perms getPermissions () const
llvm::sys::TimeValue getLastModificationTime () const
llvm::sys::fs::UniqueID getUniqueID () const
uint32_t getUser () const
uint32_t getGroup () const
uint64_t getSize () const
void setType (llvm::sys::fs::file_type v)
void setPermissions (llvm::sys::fs::perms p)

Public Attributes

bool IsVFSMapped

Detailed Description

The result of a status operation.

Definition at line 32 of file VirtualFileSystem.h.


Constructor & Destructor Documentation

Definition at line 46 of file VirtualFileSystem.h.

clang::vfs::Status::Status ( const llvm::sys::fs::file_status &  Status)
clang::vfs::Status::Status ( StringRef  Name,
StringRef  RealName,
llvm::sys::fs::UniqueID  UID,
llvm::sys::TimeValue  MTime,
uint32_t  User,
uint32_t  Group,
uint64_t  Size,
llvm::sys::fs::file_type  Type,
llvm::sys::fs::perms  Perms 
)

Member Function Documentation

bool Status::equivalent ( const Status Other) const

Definition at line 44 of file VirtualFileSystem.cpp.

References getUniqueID().

bool Status::exists ( ) const

Definition at line 62 of file VirtualFileSystem.cpp.

uint32_t clang::vfs::Status::getGroup ( ) const [inline]

Definition at line 64 of file VirtualFileSystem.h.

llvm::sys::TimeValue clang::vfs::Status::getLastModificationTime ( ) const [inline]
StringRef clang::vfs::Status::getName ( ) const [inline]

Returns the name that should be used for this file or directory.

Definition at line 54 of file VirtualFileSystem.h.

Referenced by copyStatusToFileData().

llvm::sys::fs::perms clang::vfs::Status::getPermissions ( ) const [inline]

Definition at line 60 of file VirtualFileSystem.h.

uint64_t clang::vfs::Status::getSize ( ) const [inline]

Definition at line 65 of file VirtualFileSystem.h.

Referenced by copyStatusToFileData().

llvm::sys::fs::file_type clang::vfs::Status::getType ( ) const [inline]

Definition at line 59 of file VirtualFileSystem.h.

Referenced by copyStatusToFileData().

llvm::sys::fs::UniqueID clang::vfs::Status::getUniqueID ( ) const [inline]

Definition at line 62 of file VirtualFileSystem.h.

Referenced by copyStatusToFileData(), and equivalent().

uint32_t clang::vfs::Status::getUser ( ) const [inline]

Definition at line 63 of file VirtualFileSystem.h.

Definition at line 47 of file VirtualFileSystem.cpp.

Referenced by copyStatusToFileData().

bool Status::isOther ( ) const

Definition at line 53 of file VirtualFileSystem.cpp.

Definition at line 50 of file VirtualFileSystem.cpp.

Definition at line 59 of file VirtualFileSystem.cpp.

Definition at line 56 of file VirtualFileSystem.cpp.

void clang::vfs::Status::setName ( StringRef  N) [inline]

Definition at line 55 of file VirtualFileSystem.h.

void clang::vfs::Status::setPermissions ( llvm::sys::fs::perms  p) [inline]

Definition at line 67 of file VirtualFileSystem.h.

void clang::vfs::Status::setType ( llvm::sys::fs::file_type  v) [inline]

Definition at line 66 of file VirtualFileSystem.h.


Member Data Documentation

Definition at line 43 of file VirtualFileSystem.h.

Referenced by copyStatusToFileData().


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