clang  3.9.0
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
clang::vfs::Status Class Reference

The result of a status operation. More...

#include <VirtualFileSystem.h>

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

Public Member Functions

 Status ()
 
 Status (const llvm::sys::fs::file_status &Status)
 
 Status (StringRef Name, 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. More...
 
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
 
Status queries

These are static queries in llvm::sys::fs.

bool equivalent (const Status &Other) const
 
bool isDirectory () const
 
bool isRegularFile () const
 
bool isOther () const
 
bool isSymlink () const
 
bool isStatusKnown () const
 
bool exists () const
 

Static Public Member Functions

static Status copyWithNewName (const Status &In, StringRef NewName)
 Get a copy of a Status with a different name. More...
 
static Status copyWithNewName (const llvm::sys::fs::file_status &In, StringRef NewName)
 

Public Attributes

bool IsVFSMapped
 

Detailed Description

The result of a status operation.

Definition at line 33 of file VirtualFileSystem.h.

Constructor & Destructor Documentation

clang::vfs::Status::Status ( )
inline

Definition at line 47 of file VirtualFileSystem.h.

Referenced by copyWithNewName().

clang::vfs::Status::Status ( const llvm::sys::fs::file_status &  Status)
clang::vfs::Status::Status ( StringRef  Name,
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

Status Status::copyWithNewName ( const Status In,
StringRef  NewName 
)
static

Get a copy of a Status with a different name.

Definition at line 56 of file VirtualFileSystem.cpp.

References getGroup(), getLastModificationTime(), getPermissions(), getSize(), getType(), getUniqueID(), getUser(), and Status().

static Status clang::vfs::Status::copyWithNewName ( const llvm::sys::fs::file_status &  In,
StringRef  NewName 
)
static
bool Status::equivalent ( const Status Other) const

Definition at line 68 of file VirtualFileSystem.cpp.

References getUniqueID().

bool Status::exists ( ) const

Definition at line 86 of file VirtualFileSystem.cpp.

References isStatusKnown().

Referenced by clang::vfs::FileSystem::exists(), and isOther().

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

Definition at line 69 of file VirtualFileSystem.h.

Referenced by copyWithNewName().

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 60 of file VirtualFileSystem.h.

Referenced by copyStatusToFileData(), and clang::vfs::File::getName().

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

Definition at line 65 of file VirtualFileSystem.h.

Referenced by copyWithNewName().

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

Definition at line 70 of file VirtualFileSystem.h.

Referenced by copyStatusToFileData(), and copyWithNewName().

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

Definition at line 64 of file VirtualFileSystem.h.

Referenced by copyStatusToFileData(), and copyWithNewName().

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

Definition at line 67 of file VirtualFileSystem.h.

Referenced by copyStatusToFileData(), copyWithNewName(), and equivalent().

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

Definition at line 68 of file VirtualFileSystem.h.

Referenced by copyWithNewName().

bool Status::isDirectory ( ) const

Definition at line 71 of file VirtualFileSystem.cpp.

Referenced by copyStatusToFileData(), and isOther().

bool Status::isOther ( ) const

Definition at line 77 of file VirtualFileSystem.cpp.

References exists(), isDirectory(), isRegularFile(), and isSymlink().

bool Status::isRegularFile ( ) const

Definition at line 74 of file VirtualFileSystem.cpp.

Referenced by isOther().

bool Status::isStatusKnown ( ) const

Definition at line 83 of file VirtualFileSystem.cpp.

Referenced by exists().

bool Status::isSymlink ( ) const

Definition at line 80 of file VirtualFileSystem.cpp.

Referenced by isOther().

Member Data Documentation

bool clang::vfs::Status::IsVFSMapped

Definition at line 44 of file VirtualFileSystem.h.

Referenced by copyStatusToFileData(), and getRedirectedFileStatus().


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