clang API Documentation
#include <SourceManager.h>

Public Member Functions | |
| unsigned | getOffset () const |
| bool | isExpansion () const |
| bool | isFile () const |
| const FileInfo & | getFile () const |
| const ExpansionInfo & | getExpansion () const |
Static Public Member Functions | |
| static SLocEntry | get (unsigned Offset, const FileInfo &FI) |
| static SLocEntry | get (unsigned Offset, const ExpansionInfo &Expansion) |
SLocEntry - This is a discriminated union of FileInfo and ExpansionInfo. SourceManager keeps an array of these objects, and they are uniquely identified by the FileID datatype.
Definition at line 354 of file SourceManager.h.
| static SLocEntry clang::SrcMgr::SLocEntry::get | ( | unsigned | Offset, |
| const FileInfo & | FI | ||
| ) | [inline, static] |
Definition at line 376 of file SourceManager.h.
References File.
| static SLocEntry clang::SrcMgr::SLocEntry::get | ( | unsigned | Offset, |
| const ExpansionInfo & | Expansion | ||
| ) | [inline, static] |
Definition at line 383 of file SourceManager.h.
References Expansion.
| const ExpansionInfo& clang::SrcMgr::SLocEntry::getExpansion | ( | ) | const [inline] |
Definition at line 371 of file SourceManager.h.
References Expansion, and isExpansion().
Referenced by clang::SourceManager::getImmediateExpansionRange(), clang::Lexer::getImmediateMacroName(), clang::SourceManager::getImmediateSpellingLoc(), clang::Lexer::isAtEndOfMacroExpansion(), clang::Lexer::isAtStartOfMacroExpansion(), clang::SourceManager::isMacroArgExpansion(), clang::Lexer::makeFileCharRange(), and MoveUpIncludeHierarchy().
| const FileInfo& clang::SrcMgr::SLocEntry::getFile | ( | ) | const [inline] |
Definition at line 366 of file SourceManager.h.
References File, and isFile().
Referenced by clang::SourceManager::AddLineNote(), clang::SourceManager::getBuffer(), clang::SourceManager::getBufferData(), clang::SourceManager::getCharacterData(), clang::SourceManager::getFileCharacteristic(), clang::SourceManager::getFileEntryForID(), clang::SourceManager::getFileEntryForSLocEntry(), clang::SourceManager::getIncludeLoc(), clang::SourceManager::getLineNumber(), clang::SourceManager::getNumCreatedFIDsForFileID(), clang::SourceManager::getPresumedLoc(), clang::ASTImporter::Import(), clang::Rewriter::IncreaseIndentation(), clang::Rewriter::InsertText(), MoveUpIncludeHierarchy(), clang::SourceManager::setNumCreatedFIDsForFileID(), clang::SourceManager::translateFile(), and clang::SourceManager::translateLineCol().
| unsigned clang::SrcMgr::SLocEntry::getOffset | ( | ) | const [inline] |
Definition at line 361 of file SourceManager.h.
Referenced by clang::SourceManager::getDecomposedExpansionLoc(), clang::SourceManager::getDecomposedLoc(), clang::SourceManager::getDecomposedSpellingLoc(), clang::SourceManager::getFileIDSize(), clang::SourceManager::getLocForEndOfFile(), clang::SourceManager::getLocForStartOfFile(), clang::SourceManager::isInFileID(), and clang::SourceManager::translateLineCol().
| bool clang::SrcMgr::SLocEntry::isExpansion | ( | ) | const [inline] |
Definition at line 363 of file SourceManager.h.
Referenced by getExpansion(), isFile(), and MoveUpIncludeHierarchy().
| bool clang::SrcMgr::SLocEntry::isFile | ( | ) | const [inline] |
Definition at line 364 of file SourceManager.h.
References isExpansion().
Referenced by clang::SourceManager::AddLineNote(), clang::SourceManager::getBuffer(), clang::SourceManager::getBufferData(), clang::SourceManager::getCharacterData(), getFile(), clang::SourceManager::getFileCharacteristic(), clang::SourceManager::getFileEntryForID(), clang::SourceManager::getIncludeLoc(), clang::SourceManager::getLineNumber(), clang::SourceManager::getLocForEndOfFile(), clang::SourceManager::getLocForStartOfFile(), clang::SourceManager::getNumCreatedFIDsForFileID(), clang::SourceManager::getPresumedLoc(), clang::ASTImporter::Import(), clang::SourceManager::setNumCreatedFIDsForFileID(), clang::SourceManager::translateFile(), and clang::SourceManager::translateLineCol().
Definition at line 358 of file SourceManager.h.
Referenced by get(), and getExpansion().
Definition at line 357 of file SourceManager.h.