clang 20.0.0git
|
Mapping of line offsets into a source file. More...
#include "clang/Basic/SourceManager.h"
Public Member Functions | |
operator bool () const | |
unsigned | size () const |
ArrayRef< unsigned > | getLines () const |
const unsigned * | begin () const |
const unsigned * | end () const |
const unsigned & | operator[] (int I) const |
LineOffsetMapping ()=default | |
LineOffsetMapping (ArrayRef< unsigned > LineOffsets, llvm::BumpPtrAllocator &Alloc) | |
Static Public Member Functions | |
static LineOffsetMapping | get (llvm::MemoryBufferRef Buffer, llvm::BumpPtrAllocator &Alloc) |
Mapping of line offsets into a source file.
This does not own the storage for the line numbers.
Definition at line 101 of file SourceManager.h.
|
default |
LineOffsetMapping::LineOffsetMapping | ( | ArrayRef< unsigned > | LineOffsets, |
llvm::BumpPtrAllocator & | Alloc | ||
) |
Definition at line 1289 of file SourceManager.cpp.
|
inline |
Definition at line 112 of file SourceManager.h.
References getLines().
Referenced by clang::SourceManager::getColumnNumber(), and clang::SourceManager::getLineNumber().
|
inline |
Definition at line 113 of file SourceManager.h.
References getLines().
Referenced by clang::SourceManager::getLineNumber().
|
static |
Definition at line 1223 of file SourceManager.cpp.
References likelyhasbetween().
Referenced by clang::SourceManager::getLineNumber(), and clang::SourceManager::translateLineCol().
Definition at line 108 of file SourceManager.h.
References size().
Referenced by begin(), end(), and operator[]().
|
inlineexplicit |
Definition at line 103 of file SourceManager.h.
Definition at line 114 of file SourceManager.h.
References getLines().
|
inline |
Definition at line 104 of file SourceManager.h.
Referenced by clang::SourceManager::getColumnNumber(), getLines(), and clang::SourceManager::translateLineCol().