clang
9.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 |
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 |
bool | isOpenForTests () 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 76 of file FileManager.h.
|
delete |
|
inline |
Definition at line 100 of file FileManager.h.
Referenced by clang::FileManager::getBufferForFile().
|
inline |
Return the directory the file lives in.
Definition at line 92 of file FileManager.h.
Referenced by computeRelativePath(), DetectEOL(), clang::DirectoryLookup::getName(), getPrivateModuleMap(), getPublicModuleMap(), clang::ASTImporter::Import(), clang::ModuleMap::isBuiltinHeader(), clang::ModuleMap::isHeaderUnavailableInModule(), clang::HeaderSearch::loadModuleMapFile(), clang::Preprocessor::LookupFile(), needModuleLookup(), clang::ModuleMap::setUmbrellaHeader(), and clang::HeaderSearch::ShouldEnterIncludeFile().
|
inline |
Definition at line 89 of file FileManager.h.
Referenced by clang::PrecompiledPreamble::Build(), clang::arcmt::FileRemapper::flushToFile(), clang::serialization::reader::HeaderFileInfoTrait::GetInternalKey(), clang::ASTWriter::getTimestampForOutput(), clang::Preprocessor::HandlePragmaDependency(), clang::arcmt::FileRemapper::initFromFile(), clang::serialization::ModuleManager::lookupModuleFile(), clang::ModuleMap::resolveHeaderDirectives(), and clang::ASTReader::resolvePendingMacro().
|
inline |
Definition at line 83 of file FileManager.h.
Referenced by clang::ModuleMap::addHeader(), applyEditsToTemp(), clang::arcmt::MigrationProcess::applyTransform(), clang::tooling::AtomicChange::AtomicChange(), clang::FrontendAction::BeginSourceFile(), clang::PrecompiledPreamble::Build(), clang::Preprocessor::checkModuleIsAvailable(), checkMSVCHeaderSearch(), compareCrossTUSourceLocs(), compileModuleImpl(), computeRelativePath(), CreateSLocExpansionAbbrev(), diagnoseFrameworkInclude(), clang::ModuleMap::diagnoseHeaderInclusion(), clang::TextDiagnostic::emitDiagnosticLoc(), clang::sema::SemaPPCallbacks::FileChanged(), clang::arcmt::FileRemapper::flushToFile(), getActualFileUID(), 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::FileManager::invalidateCache(), clang::ModuleMap::isBuiltinHeader(), clang::HeaderSearch::LookupSubframeworkHeader(), clang::tooling::operator==(), clang::Rewriter::overwriteChangedFiles(), clang::arcmt::FileRemapper::overwriteOriginal(), printLoc(), clang::HeaderSearch::ShouldEnterIncludeFile(), suggestModule(), clang::HeaderSearch::suggestPathToFileForDiagnostics(), clang::SourceManager::translateFile(), clang::VerifyDiagnosticConsumer::UpdateParsedFileStatus(), clang::arcmt::writeARCDiagsToPlist(), and clang::FixItRewriter::WriteFixedFiles().
|
inline |
Definition at line 86 of file FileManager.h.
Referenced by clang::PrecompiledPreamble::Build(), clang::HeaderMap::Create(), createFile(), CreateSLocExpansionAbbrev(), clang::SrcMgr::ContentCache::getBuffer(), clang::FileManager::getBufferForFile(), clang::serialization::reader::HeaderFileInfoTrait::GetInternalKey(), clang::SrcMgr::ContentCache::getSize(), InitializeFileRemapping(), clang::serialization::ModuleManager::lookupModuleFile(), clang::SourceManager::overrideFileContents(), clang::ModuleMap::resolveHeaderDirectives(), and clang::ASTReader::resolvePendingMacro().
|
inline |
Definition at line 87 of file FileManager.h.
Referenced by clang::AttachDependencyGraphGen(), clang::HeaderSearch::getExistingFileInfo(), and clang::HeaderSearch::getFileInfo().
|
inline |
Definition at line 88 of file FileManager.h.
Referenced by clang::FileManager::invalidateCache().
|
inline |
Check whether the file is a named pipe (and thus can't be opened by the native FileManager methods).
Definition at line 98 of file FileManager.h.
Referenced by clang::CompilerInstance::InitializeSourceManager().
|
inline |
Definition at line 106 of file FileManager.h.
|
inline |
Definition at line 85 of file FileManager.h.
Referenced by clang::TextDiagnostic::emitDiagnosticLoc(), and clang::LogDiagnosticPrinter::HandleDiagnostic().
Definition at line 94 of file FileManager.h.
|
inline |
Definition at line 84 of file FileManager.h.
Referenced by clang::Preprocessor::checkModuleIsAvailable(), and getFileName().
|
friend |
Definition at line 60 of file FileManager.h.