clang
15.0.0git
|
Cached information about one file (either on disk or in the virtual file system). More...
#include "clang/Basic/FileEntry.h"
Public Member Functions | |
~FileEntry () | |
StringRef | getName () const |
FileEntryRef | getLastRef () const |
StringRef | tryGetRealPathName () 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 | 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 |
class | FileEntryTestHelper |
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 330 of file FileEntry.h.
|
default |
void FileEntry::closeFile | ( | ) | const |
Definition at line 24 of file FileEntry.cpp.
Referenced by clang::FileManager::getBufferForFile().
|
inline |
Return the directory the file lives in.
Definition at line 371 of file FileEntry.h.
Referenced by clang::ModuleMap::isHeaderUnavailableInModule(), clang::Preprocessor::LookupFile(), and clang::ModuleMap::setUmbrellaHeader().
|
inline |
Definition at line 362 of file FileEntry.h.
Referenced by clang::SourceManager::createFileID(), and clang::SourceManager::overrideFileContents().
|
inline |
Definition at line 368 of file FileEntry.h.
Referenced by clang::arcmt::FileRemapper::flushToFile(), clang::serialization::reader::HeaderFileInfoTrait::GetInternalKey(), clang::ASTWriter::getTimestampForOutput(), and clang::Preprocessor::HandlePragmaDependency().
|
inline |
Definition at line 361 of file FileEntry.h.
Referenced by clang::ModuleMap::addHeader(), clang::arcmt::MigrationProcess::applyTransform(), clang::tooling::AtomicChange::AtomicChange(), clang::FrontendAction::BeginSourceFile(), checkMSVCHeaderSearch(), compareCrossTUSourceLocs(), compileModule(), diagnoseFrameworkInclude(), clang::tooling::dependencies::ModuleDepCollectorPP::EndOfMainFile(), clang::arcmt::FileRemapper::flushToFile(), clang::FileManager::getBufferForFile(), clang::SrcMgr::ContentCache::getBufferOrNone(), getFileName(), clang::serialization::reader::HeaderFileInfoTrait::GetInternalKey(), clang::HeaderSearch::LookupSubframeworkHeader(), clang::Rewriter::overwriteChangedFiles(), clang::arcmt::FileRemapper::overwriteOriginal(), printLoc(), clang::index::SerializablePathCollection::tryStoreFilePath(), and clang::FixItRewriter::WriteFixedFiles().
|
inline |
Definition at line 365 of file FileEntry.h.
Referenced by clang::HeaderMap::Create(), createArtifact(), clang::FileManager::getBufferForFile(), clang::SrcMgr::ContentCache::getBufferOrNone(), clang::serialization::reader::HeaderFileInfoTrait::GetInternalKey(), clang::SrcMgr::ContentCache::getSize(), and clang::SourceManager::overrideFileContents().
|
inline |
Definition at line 366 of file FileEntry.h.
Referenced by clang::HeaderSearch::getExistingFileInfo(), clang::HeaderSearch::getFileInfo(), and clang::SourceManager::isMainFile().
|
inline |
Definition at line 367 of file FileEntry.h.
|
inline |
Check whether the file is a named pipe (and thus can't be opened by the native FileManager methods).
Definition at line 375 of file FileEntry.h.
Referenced by clang::SourceManager::createFileID(), clang::FileManager::getBufferForFile(), and clang::SrcMgr::ContentCache::getBufferOrNone().
|
inline |
Definition at line 364 of file FileEntry.h.
Referenced by getFileName().
|
friend |
Definition at line 332 of file FileEntry.h.
|
friend |
Definition at line 331 of file FileEntry.h.