clang API Documentation
Cached information about one file (either on disk or in the virtual file system). More...
#include <FileManager.h>
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 DirectoryEntry * | getDir () 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 |
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.
clang::FileEntry::FileEntry | ( | ) | [inline] |
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().
const DirectoryEntry* clang::FileEntry::getDir | ( | ) | const [inline] |
Return the directory the file lives in.
Definition at line 105 of file FileManager.h.
Referenced by computeRelativePath(), clang::ModuleMap::inferFrameworkModule(), clang::ModuleMap::isHeaderUnavailableInModule(), clang::Preprocessor::LookupFile(), clang::ModuleMap::parseModuleMapFile(), and clang::ModuleMap::setUmbrellaHeader().
time_t clang::FileEntry::getModificationTime | ( | ) | const [inline] |
Definition at line 102 of file FileManager.h.
Referenced by clang::arcmt::FileRemapper::flushToFile(), clang::serialization::reader::HeaderFileInfoTrait::GetInternalKey(), clang::Preprocessor::HandlePragmaDependency(), clang::arcmt::FileRemapper::initFromFile(), and clang::serialization::ModuleManager::lookupModuleFile().
const char* clang::FileEntry::getName | ( | ) | const [inline] |
Definition at line 96 of file FileManager.h.
Referenced by addHeaderInclude(), applyEditsToTemp(), clang::arcmt::MigrationProcess::applyTransform(), clang::CacheTokens(), checkMSVCHeaderSearch(), clang::GenerateModuleAction::ComputeASTConsumerArguments(), computeRelativePath(), clang::TextDiagnostic::emitDiagnosticLoc(), clang::ModuleMap::findModuleForHeader(), clang::arcmt::FileRemapper::flushToFile(), getActualFileUID(), clang::SrcMgr::ContentCache::getBuffer(), clang::FileManager::getBufferForFile(), clang::serialization::reader::HeaderFileInfoTrait::GetInternalKey(), clang::PTHManager::PTHFileLookupTrait::GetInternalKey(), clang::HeaderSearch::getModuleFileName(), clang::SourceManager::getPresumedLoc(), clang::LogDiagnosticPrinter::HandleDiagnostic(), clang::ASTImporter::Import(), clang::FileManager::invalidateCache(), clang::ModuleMap::isHeaderUnavailableInModule(), clang::HeaderSearch::LookupFile(), clang::HeaderSearch::LookupSubframeworkHeader(), clang::Rewriter::overwriteChangedFiles(), clang::arcmt::FileRemapper::overwriteOriginal(), printLoc(), clang::ASTReader::ReadSLocEntry(), clang::SourceManager::translateFile(), clang::arcmt::writeARCDiagsToPlist(), and clang::FixItRewriter::WriteFixedFiles().
off_t clang::FileEntry::getSize | ( | ) | const [inline] |
Definition at line 98 of file FileManager.h.
Referenced by clang::HeaderMap::Create(), clang::SrcMgr::ContentCache::getBuffer(), clang::FileManager::getBufferForFile(), clang::serialization::reader::HeaderFileInfoTrait::GetInternalKey(), clang::SrcMgr::ContentCache::getSize(), InitializeFileRemapping(), clang::serialization::ModuleManager::lookupModuleFile(), and clang::SourceManager::overrideFileContents().
unsigned clang::FileEntry::getUID | ( | ) | const [inline] |
Definition at line 99 of file FileManager.h.
Referenced by clang::HeaderSearch::isFileMultipleIncludeGuarded(), clang::HeaderSearch::MarkFileModuleHeader(), and clang::HeaderSearch::tryGetFileInfo().
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] |
Definition at line 97 of file FileManager.h.
Referenced by clang::TextDiagnostic::emitDiagnosticLoc(), FileEntry(), clang::FileManager::getFile(), clang::FileManager::getVirtualFile(), and clang::LogDiagnosticPrinter::HandleDiagnostic().
Definition at line 107 of file FileManager.h.
friend class FileManager [friend] |
Definition at line 74 of file FileManager.h.