clang 17.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. | |
bool | isNamedPipe () const |
Check whether the file is a named pipe (and thus can't be opened by the native FileManager methods). | |
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 353 of file FileEntry.h.
|
default |
void FileEntry::closeFile | ( | ) | const |
Definition at line 24 of file FileEntry.cpp.
Referenced by clang::FileEntryRef::closeFile(), and clang::FileManager::getBufferForFile().
|
inline |
Return the directory the file lives in.
Definition at line 394 of file FileEntry.h.
Referenced by clang::ModuleMap::isHeaderUnavailableInModule().
|
inline |
Definition at line 385 of file FileEntry.h.
Referenced by clang::SourceManager::createFileID(), and clang::SourceManager::overrideFileContents().
|
inline |
Definition at line 391 of file FileEntry.h.
Referenced by clang::arcmt::FileRemapper::flushToFile(), clang::serialization::reader::HeaderFileInfoTrait::GetInternalKey(), clang::FileEntryRef::getModificationTime(), clang::ASTWriter::getTimestampForOutput(), and clang::Preprocessor::HandlePragmaDependency().
|
inline |
Definition at line 384 of file FileEntry.h.
References clang::FileEntryRef::getName().
Referenced by clang::arcmt::MigrationProcess::applyTransform(), clang::ast_matchers::AST_POLYMORPHIC_MATCHER_REGEX(), clang::tooling::AtomicChange::AtomicChange(), clang::FrontendAction::BeginSourceFile(), checkMSVCHeaderSearch(), compareCrossTUSourceLocs(), diagnoseFrameworkInclude(), clang::tooling::dependencies::ModuleDepCollectorPP::EndOfMainFile(), clang::sema::SemaPPCallbacks::FileChanged(), clang::arcmt::FileRemapper::flushToFile(), clang::FileManager::getBufferForFile(), clang::SrcMgr::ContentCache::getBufferOrNone(), getFileName(), clang::serialization::reader::HeaderFileInfoTrait::GetInternalKey(), clang::ModuleMap::isHeaderUnavailableInModule(), clang::CodeGen::CodeGenModule::isInNoSanitizeList(), clang::HeaderSearch::LookupSubframeworkHeader(), clang::Rewriter::overwriteChangedFiles(), clang::arcmt::FileRemapper::overwriteOriginal(), printLoc(), clang::index::SerializablePathCollection::tryStoreFilePath(), and clang::FixItRewriter::WriteFixedFiles().
|
inline |
Definition at line 388 of file FileEntry.h.
Referenced by clang::HeaderMap::Create(), clang::FileManager::getBufferForFile(), clang::SrcMgr::ContentCache::getBufferOrNone(), clang::serialization::reader::HeaderFileInfoTrait::GetInternalKey(), clang::FileEntryRef::getSize(), clang::SrcMgr::ContentCache::getSize(), and clang::SourceManager::overrideFileContents().
|
inline |
Definition at line 389 of file FileEntry.h.
Referenced by clang::HeaderSearch::getExistingFileInfo(), clang::HeaderSearch::getFileInfo(), clang::FileEntryRef::getUID(), and clang::SourceManager::isMainFile().
|
inline |
Definition at line 390 of file FileEntry.h.
Referenced by clang::FileEntryRef::getUniqueID().
|
inline |
Check whether the file is a named pipe (and thus can't be opened by the native FileManager methods).
Definition at line 398 of file FileEntry.h.
Referenced by clang::SourceManager::createFileID(), clang::FileManager::getBufferForFile(), clang::SrcMgr::ContentCache::getBufferOrNone(), and clang::FileEntryRef::isNamedPipe().
|
inline |
Definition at line 387 of file FileEntry.h.
Referenced by getFileName().
|
friend |
Definition at line 355 of file FileEntry.h.
|
friend |
Definition at line 354 of file FileEntry.h.