clang
6.0.0
|
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 | |
FileEntry & | operator= (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 |
bool | isInPCH () const |
time_t | getModificationTime () const |
const DirectoryEntry * | getDir () 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 |
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 59 of file FileManager.h.
|
inline |
Definition at line 77 of file FileManager.h.
|
delete |
|
inline |
Definition at line 102 of file FileManager.h.
Referenced by clang::FileManager::getBufferForFile(), and clang::FileManager::getVirtualFile().
|
inline |
Return the directory the file lives in.
Definition at line 94 of file FileManager.h.
Referenced by DetectEOL(), getPrivateModuleMap(), clang::ASTImporter::Import(), clang::HeaderSearch::loadModuleMapFile(), clang::Preprocessor::LookupFile(), needModuleLookup(), clang::ModuleMap::setUmbrellaHeader(), and clang::HeaderSearch::ShouldEnterIncludeFile().
|
inline |
Definition at line 91 of file FileManager.h.
Referenced by clang::PrecompiledPreamble::Build(), clang::serialization::reader::HeaderFileInfoTrait::GetInternalKey(), clang::Preprocessor::HandlePragmaDependency(), clang::arcmt::FileRemapper::initFromFile(), and clang::ModuleMap::resolveHeaderDirectives().
|
inline |
Definition at line 84 of file FileManager.h.
Referenced by clang::ModuleMap::addHeader(), clang::DependencyCollector::attachToASTReader(), clang::PrecompiledPreamble::Build(), clang::CacheTokens(), checkMSVCHeaderSearch(), compileModuleImpl(), CreateSLocExpansionAbbrev(), clang::ModuleMap::diagnoseHeaderInclusion(), clang::TextDiagnostic::emitDiagnosticLoc(), getActualFileUID(), clang::SrcMgr::ContentCache::getBuffer(), clang::FileManager::getBufferForFile(), clang::HeaderSearch::getCachedModuleFileName(), clang::serialization::reader::HeaderFileInfoTrait::GetInternalKey(), clang::PTHManager::PTHFileLookupTrait::GetInternalKey(), clang::SourceManager::getPresumedLoc(), getPrivateModuleMap(), clang::LogDiagnosticPrinter::HandleDiagnostic(), hasSuperInitCall(), clang::ASTImporter::Import(), clang::FileManager::invalidateCache(), clang::HeaderSearch::LookupSubframeworkHeader(), printLoc(), ReportPiece(), clang::HeaderSearch::ShouldEnterIncludeFile(), suggestModule(), and clang::SourceManager::translateFile().
|
inline |
Definition at line 87 of file FileManager.h.
Referenced by clang::PrecompiledPreamble::Build(), clang::HeaderMap::Create(), CreateSLocExpansionAbbrev(), clang::SrcMgr::ContentCache::getBuffer(), clang::FileManager::getBufferForFile(), clang::serialization::reader::HeaderFileInfoTrait::GetInternalKey(), clang::SrcMgr::ContentCache::getSize(), InitializeFileRemapping(), clang::SourceManager::overrideFileContents(), and clang::ModuleMap::resolveHeaderDirectives().
|
inline |
Definition at line 88 of file FileManager.h.
Referenced by clang::HeaderSearch::getExistingFileInfo(), and clang::HeaderSearch::getFileInfo().
|
inline |
Definition at line 89 of file FileManager.h.
Referenced by clang::FileManager::invalidateCache().
|
inline |
Definition at line 90 of file FileManager.h.
Referenced by clang::TextDiagnostic::emitDiagnosticLoc().
|
inline |
Check whether the file is a named pipe (and thus can't be opened by the native FileManager methods).
Definition at line 100 of file FileManager.h.
|
inline |
Definition at line 86 of file FileManager.h.
Referenced by clang::TextDiagnostic::emitDiagnosticLoc(), clang::FileManager::getFile(), clang::FileManager::getVirtualFile(), and clang::LogDiagnosticPrinter::HandleDiagnostic().
Definition at line 96 of file FileManager.h.
|
inline |
Definition at line 85 of file FileManager.h.
Referenced by clang::Preprocessor::checkModuleIsAvailable().
|
friend |
Definition at line 60 of file FileManager.h.