clang  10.0.0svn
Public Member Functions | Friends | List of all members
clang::FileEntry Class Reference

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

#include "clang/Basic/FileManager.h"

Public Member Functions

 FileEntry ()
 FileEntry (const FileEntry &)=delete
FileEntryoperator= (const FileEntry &)=delete
StringRef getName () const
StringRef tryGetRealPathName () const
bool isValid () const
off_t getSize () const
unsigned getUID () const
const llvm::sys::fs::UniqueID & getUniqueID () const
time_t getModificationTime () const
const DirectoryEntrygetDir () const
 Return the directory the file lives in. More...
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). More...
void closeFile () const
bool isOpenForTests () const


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 78 of file FileManager.h.

Constructor & Destructor Documentation

◆ FileEntry() [1/2]

clang::FileEntry::FileEntry ( )

Definition at line 95 of file FileManager.h.

◆ FileEntry() [2/2]

clang::FileEntry::FileEntry ( const FileEntry )

Member Function Documentation

◆ closeFile()

void clang::FileEntry::closeFile ( ) const

Definition at line 119 of file FileManager.h.

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

◆ getDir()

const DirectoryEntry* clang::FileEntry::getDir ( ) const

◆ getModificationTime()

time_t clang::FileEntry::getModificationTime ( ) const

◆ getName()

StringRef clang::FileEntry::getName ( ) const

Definition at line 102 of file FileManager.h.

Referenced by clang::ModuleMap::addHeader(), applyEditsToTemp(), clang::arcmt::MigrationProcess::applyTransform(), clang::tooling::AtomicChange::AtomicChange(), clang::FrontendAction::BeginSourceFile(), clang::SourceManager::bypassFileContentsOverride(), checkMSVCHeaderSearch(), compareCrossTUSourceLocs(), compileModuleImpl(), computeRelativePath(), clang::SourceManager::createFileID(), CreateSLocExpansionAbbrev(), diagnoseFrameworkInclude(), clang::ModuleMap::diagnoseHeaderInclusion(), clang::TextDiagnostic::emitDiagnosticLoc(), clang::sema::SemaPPCallbacks::FileChanged(), clang::arcmt::FileRemapper::flushToFile(), clang::SrcMgr::ContentCache::getBuffer(), clang::FileManager::getBufferForFile(), clang::HeaderSearch::getCachedModuleFileName(), getFileName(), clang::serialization::reader::HeaderFileInfoTrait::GetInternalKey(), clang::SourceManager::getPresumedLoc(), getPrivateModuleMap(), getPublicModuleMap(), clang::LogDiagnosticPrinter::HandleDiagnostic(), hasSuperInitCall(), clang::ASTImporter::Import(), clang::ModuleMap::isBuiltinHeader(), clang::HeaderSearch::LookupFile(), clang::HeaderSearch::LookupSubframeworkHeader(), clang::tooling::operator==(), clang::Rewriter::overwriteChangedFiles(), clang::arcmt::FileRemapper::overwriteOriginal(), printLoc(), clang::ASTReader::resolvePendingMacro(), clang::HeaderSearch::ShouldEnterIncludeFile(), suggestModule(), clang::HeaderSearch::suggestPathToFileForDiagnostics(), clang::VerifyDiagnosticConsumer::UpdateParsedFileStatus(), clang::arcmt::writeARCDiagsToPlist(), and clang::FixItRewriter::WriteFixedFiles().

◆ getSize()

off_t clang::FileEntry::getSize ( ) const

◆ getUID()

unsigned clang::FileEntry::getUID ( ) const

◆ getUniqueID()

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

Definition at line 107 of file FileManager.h.

◆ isNamedPipe()

bool clang::FileEntry::isNamedPipe ( ) const

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

Definition at line 117 of file FileManager.h.

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

◆ isOpenForTests()

bool clang::FileEntry::isOpenForTests ( ) const

Definition at line 125 of file FileManager.h.

◆ isValid()

bool clang::FileEntry::isValid ( ) const

◆ operator<()

bool clang::FileEntry::operator< ( const FileEntry RHS) const

Definition at line 113 of file FileManager.h.

◆ operator=()

FileEntry& clang::FileEntry::operator= ( const FileEntry )

◆ tryGetRealPathName()

StringRef clang::FileEntry::tryGetRealPathName ( ) const

Definition at line 103 of file FileManager.h.

Referenced by getFileName().

Friends And Related Function Documentation

◆ FileManager

friend class FileManager

Definition at line 79 of file FileManager.h.

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