clang API Documentation
An opaque identifier used by SourceManager which refers to a source file (MemoryBuffer) along with its #include path and #line data. More...
#include <SourceLocation.h>
Public Member Functions | |
FileID () | |
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 |
Static Public Member Functions | |
static FileID | getSentinel () |
Friends | |
class | SourceManager |
class | ASTWriter |
class | ASTReader |
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.
clang::FileID::FileID | ( | ) | [inline] |
Definition at line 44 of file SourceLocation.h.
unsigned clang::FileID::getHashValue | ( | ) | const [inline] |
Definition at line 56 of file SourceLocation.h.
Referenced by llvm::DenseMapInfo< clang::FileID >::getHashValue().
static FileID clang::FileID::getSentinel | ( | ) | [inline, static] |
Definition at line 55 of file SourceLocation.h.
Referenced by llvm::DenseMapInfo< clang::FileID >::getTombstoneKey().
bool clang::FileID::isInvalid | ( | ) | const [inline] |
Definition at line 46 of file SourceLocation.h.
Referenced by applyRewrite(), checkConfigMacro(), clang::TextDiagnostic::emitDiagnosticLoc(), clang::Preprocessor::EnterMainSourceFile(), findDirectives(), clang::ASTUnit::findFileRegionDecls(), clang::SourceManager::getDecomposedIncludedLoc(), clang::ASTUnit::getEndOfPreambleFileID(), clang::SourceManager::getLineNumber(), clang::SourceManager::getMacroArgExpandedLocation(), clang::ASTUnit::getStartOfMainFileID(), clang::LogDiagnosticPrinter::HandleDiagnostic(), clang::ento::PathDiagnosticConsumer::HandlePathDiagnostic(), clang::CompilerInstance::InitializeSourceManager(), clang::SourceManager::isAtEndOfImmediateMacroExpansion(), clang::SourceManager::isAtStartOfImmediateMacroExpansion(), clang::PreprocessingRecord::isEntityInFileID(), clang::ASTUnit::isInMainFileID(), clang::ASTUnit::isInPreambleFileID(), clang::edit::FileOffset::isInvalid(), isPreprocessedEntityIfInFileID(), clang::ASTReader::isPreprocessedEntityInFileID(), makeRangeFromFileLocs(), clang::ASTUnit::mapLocationFromPreamble(), clang::ASTUnit::mapLocationToPreamble(), ParseDirective(), clang::ASTReader::ReadAST(), clang::SourceManager::setPreambleFileID(), clang::SourceManager::translateFile(), clang::SourceManager::translateLineCol(), and clang::VerifyDiagnosticConsumer::UpdateParsedFileStatus().
Definition at line 51 of file SourceLocation.h.
Definition at line 49 of file SourceLocation.h.
Definition at line 50 of file SourceLocation.h.
Definition at line 48 of file SourceLocation.h.
Definition at line 52 of file SourceLocation.h.
Definition at line 53 of file SourceLocation.h.
friend class ASTReader [friend] |
Definition at line 61 of file SourceLocation.h.
friend class ASTWriter [friend] |
Definition at line 60 of file SourceLocation.h.
friend class SourceManager [friend] |
Definition at line 59 of file SourceLocation.h.