clang: clang::FileID Class Reference (original) (raw)

An opaque identifier used by SourceManager which refers to a source file (MemoryBuffer) along with its #include path and #line data. More...

#include "[clang/Basic/SourceLocation.h](SourceLocation%5F8h%5Fsource.html)"

Public Member Functions
bool isValid () const
bool isInvalid () const
bool operator== (const FileID &RHS) const
bool operator< (const FileID &RHS) const
bool operator<= (const FileID &RHS) const
bool operator!= (const FileID &RHS) const
bool operator> (const FileID &RHS) const
bool operator>= (const FileID &RHS) const
unsigned getHashValue () const
Friends
class ASTWriter
class ASTReader
class SourceManager
class SourceManagerTestHelper

Detailed Description

An opaque identifier used by SourceManager which refers to a source file (MemoryBuffer) along with its #include path and #line data.

Definition at line 39 of file SourceLocation.h.

Member Function Documentation

getHashValue()

unsigned clang::FileID::getHashValue ( ) const inline

getSentinel()

static FileID clang::FileID::getSentinel ( ) inlinestatic

isInvalid()

bool clang::FileID::isInvalid ( ) const inline

Definition at line 46 of file SourceLocation.h.

Referenced by clang::ASTUnit::addFileLevelDecl(), checkConfigMacro(), checkNullabilityConsistency(), findDirectives(), clang::SourceManager::getDecomposedIncludedLoc(), clang::ASTUnit::getEndOfPreambleFileID(), clang::SourceManager::getLineNumber(), clang::SourceManager::getMacroArgExpandedLocation(), getNullabilityCompletenessCheckFileID(), clang::ASTUnit::getStartOfMainFileID(), clang::ento::PathDiagnosticConsumer::HandlePathDiagnostic(), clang::ASTImporter::Import(), clang::index::IndexingContext::importedModule(), clang::SourceManager::initializeForReplay(), clang::SourceManager::isAtEndOfImmediateMacroExpansion(), clang::SourceManager::isAtStartOfImmediateMacroExpansion(), clang::PreprocessingRecord::isEntityInFileID(), clang::ASTUnit::isInMainFileID(), clang::ASTUnit::isInPreambleFileID(), clang::edit::FileOffset::isInvalid(), clang::ASTReader::isPreprocessedEntityInFileID(), makeRangeFromFileLocs(), clang::ASTUnit::mapLocationFromPreamble(), clang::ASTUnit::mapLocationToPreamble(), ParseDirective(), recordNullabilitySeen(), clang::SourceManager::setPreambleFileID(), clang::ASTReader::TranslateFileID(), clang::SourceManager::translateLineCol(), and clang::VerifyDiagnosticConsumer::UpdateParsedFileStatus().

isValid()

bool clang::FileID::isValid ( ) const inline

Definition at line 45 of file SourceLocation.h.

Referenced by applyRewrite(), compileModule(), clang::Preprocessor::creatingPCHWithThroughHeader(), clang::Preprocessor::EnterMainSourceFile(), clang::LogDiagnosticPrinter::HandleDiagnostic(), clang::Preprocessor::HandleEndOfFile(), clang::ASTImporter::Import(), clang::CompilerInstance::InitializeSourceManager(), clang::InBeforeInTUCacheEntry::isCacheValid(), clang::SourceManager::isMainFile(), clang::Preprocessor::isPCHThroughHeader(), isPreprocessedEntityIfInFileID(), clang::ASTReader::ReadAST(), clang::ASTReader::ReadPragmaDiagnosticMappings(), updateExecutedLinesWithDiagnosticPieces(), and clang::Preprocessor::usingPCHWithThroughHeader().

operator!=()

bool clang::FileID::operator!= ( const FileID & RHS) const inline

operator<()

bool clang::FileID::operator< ( const FileID & RHS) const inline

operator<=()

bool clang::FileID::operator<= ( const FileID & RHS) const inline

operator==()

bool clang::FileID::operator== ( const FileID & RHS) const inline

operator>()

bool clang::FileID::operator> ( const FileID & RHS) const inline

operator>=()

bool clang::FileID::operator>= ( const FileID & RHS) const inline

ASTReader

ASTWriter

SourceManager

SourceManagerTestHelper

friend class SourceManagerTestHelper friend

The documentation for this class was generated from the following file: