clang API Documentation
A source range independent of the SourceManager
.
More...
#include <Replacement.h>
Public Member Functions | |
Range () | |
Range (unsigned Offset, unsigned Length) | |
unsigned | getOffset () const |
Accessors. | |
unsigned | getLength () const |
Range Predicates | |
Whether this range overlaps with | |
bool | overlapsWith (Range RHS) const |
bool | contains (Range RHS) const |
Whether this range contains RHS or not. |
A source range independent of the SourceManager
.
Definition at line 35 of file Replacement.h.
clang::tooling::Range::Range | ( | ) | [inline] |
Definition at line 37 of file Replacement.h.
clang::tooling::Range::Range | ( | unsigned | Offset, |
unsigned | Length | ||
) | [inline] |
Definition at line 38 of file Replacement.h.
bool clang::tooling::Range::contains | ( | Range | RHS | ) | const [inline] |
Whether this range contains RHS
or not.
Definition at line 54 of file Replacement.h.
unsigned clang::tooling::Range::getLength | ( | ) | const [inline] |
Definition at line 43 of file Replacement.h.
Referenced by clang::tooling::Replacement::apply(), clang::tooling::deduplicate(), clang::tooling::Replacement::getLength(), and clang::tooling::Replacement::toString().
unsigned clang::tooling::Range::getOffset | ( | ) | const [inline] |
Accessors.
Definition at line 42 of file Replacement.h.
Referenced by clang::tooling::Replacement::apply(), clang::tooling::deduplicate(), clang::tooling::Replacement::getOffset(), and clang::tooling::Replacement::toString().
bool clang::tooling::Range::overlapsWith | ( | Range | RHS | ) | const [inline] |
Definition at line 49 of file Replacement.h.