clang API Documentation
#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 |
FileID - This is an opaque identifier used by SourceManager which refers to a source file (MemoryBuffer) along with its #include path and #line data.
Definition at line 36 of file SourceLocation.h.
| clang::FileID::FileID | ( | ) | [inline] |
Definition at line 41 of file SourceLocation.h.
| unsigned clang::FileID::getHashValue | ( | ) | const [inline] |
Definition at line 53 of file SourceLocation.h.
Referenced by llvm::DenseMapInfo< clang::FileID >::getHashValue().
| static FileID clang::FileID::getSentinel | ( | ) | [inline, static] |
Definition at line 52 of file SourceLocation.h.
Referenced by llvm::DenseMapInfo< clang::FileID >::getTombstoneKey().
| bool clang::FileID::isInvalid | ( | ) | const [inline] |
Definition at line 43 of file SourceLocation.h.
Referenced by clang::SourceManager::createMainFileID(), clang::SourceManager::createMainFileIDForMemBuffer(), clang::TextDiagnostic::emitDiagnosticLoc(), clang::Preprocessor::EnterMainSourceFile(), FindExpectedDiags(), clang::ASTUnit::findFileRegionDecls(), clang::ASTUnit::getEndOfPreambleFileID(), clang::SourceManager::getLineNumber(), clang::SourceManager::getMacroArgExpandedLocation(), clang::ASTUnit::getStartOfMainFileID(), clang::LogDiagnosticPrinter::HandleDiagnostic(), clang::VerifyDiagnosticConsumer::HandleDiagnostic(), clang::CompilerInstance::InitializeSourceManager(), clang::PreprocessingRecord::isEntityInFileID(), clang::ASTUnit::isInMainFileID(), clang::ASTUnit::isInPreambleFileID(), isPreprocessedEntityIfInFileID(), clang::ASTReader::isPreprocessedEntityInFileID(), clang::Lexer::makeFileCharRange(), makeRangeFromFileLocs(), clang::ASTUnit::mapLocationFromPreamble(), clang::ASTUnit::mapLocationToPreamble(), clang::SourceManager::setMainFileID(), clang::SourceManager::setPreambleFileID(), clang::SourceManager::translateFile(), and clang::SourceManager::translateLineCol().
| bool clang::FileID::operator!= | ( | const FileID & | RHS | ) | const [inline] |
Definition at line 48 of file SourceLocation.h.
| bool clang::FileID::operator< | ( | const FileID & | RHS | ) | const [inline] |
Definition at line 46 of file SourceLocation.h.
| bool clang::FileID::operator<= | ( | const FileID & | RHS | ) | const [inline] |
Definition at line 47 of file SourceLocation.h.
| bool clang::FileID::operator== | ( | const FileID & | RHS | ) | const [inline] |
Definition at line 45 of file SourceLocation.h.
| bool clang::FileID::operator> | ( | const FileID & | RHS | ) | const [inline] |
Definition at line 49 of file SourceLocation.h.
| bool clang::FileID::operator>= | ( | const FileID & | RHS | ) | const [inline] |
Definition at line 50 of file SourceLocation.h.
friend class ASTReader [friend] |
Definition at line 58 of file SourceLocation.h.
friend class ASTWriter [friend] |
Definition at line 57 of file SourceLocation.h.
friend class SourceManager [friend] |
Definition at line 56 of file SourceLocation.h.