LLVM 22.0.0git
|
#include "llvm/Support/LSP/Protocol.h"
Public Member Functions | |
Range ()=default | |
Range (Position start, Position end) | |
Range (Position loc) | |
Range (llvm::SourceMgr &mgr, SMRange range) | |
Construct a range from the given source range. | |
bool | contains (Position pos) const |
bool | contains (Range range) const |
SMRange | getAsSMRange (llvm::SourceMgr &mgr) const |
Convert this range into a source range in the main file of the given source manager. |
Public Attributes | |
Position | start |
The range's start position. | |
Position | end |
The range's end position. |
Friends | |
bool | operator== (const Range &lhs, const Range &rhs) |
bool | operator!= (const Range &lhs, const Range &rhs) |
bool | operator< (const Range &lhs, const Range &rhs) |
Definition at line 339 of file Protocol.h.
|
default |
Referenced by contains(), operator!=, operator<, operator==, Range(), and Range().
Definition at line 341 of file Protocol.h.
|
inline |
Definition at line 342 of file Protocol.h.
References Range().
|
inline |
Construct a range from the given source range.
Definition at line 345 of file Protocol.h.
References Range().
Definition at line 364 of file Protocol.h.
Definition at line 365 of file Protocol.h.
|
inline |
Convert this range into a source range in the main file of the given source manager.
Definition at line 371 of file Protocol.h.
References end, llvm::SMLoc::getPointer(), llvm::SMLoc::isValid(), and start.
Definition at line 357 of file Protocol.h.
References Range().
Definition at line 360 of file Protocol.h.
Definition at line 354 of file Protocol.h.
Position llvm::lsp::Range::end |
The range's end position.
Definition at line 352 of file Protocol.h.
Referenced by contains(), contains(), getAsSMRange(), operator<, operator==, and Range().
Position llvm::lsp::Range::start |
The range's start position.
Definition at line 349 of file Protocol.h.
Referenced by contains(), contains(), getAsSMRange(), operator<, operator==, and Range().