clang 20.0.0git
|
A source range independent of the SourceManager
.
More...
#include "clang/Tooling/Core/Replacement.h"
Public Member Functions | |
Range ()=default | |
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. | |
bool | operator== (const Range &RHS) const |
Whether this range equals to RHS or not. | |
A source range independent of the SourceManager
.
Definition at line 44 of file Replacement.h.
|
default |
Definition at line 47 of file Replacement.h.
Whether this range contains RHS
or not.
Definition at line 63 of file Replacement.h.
|
inline |
Definition at line 52 of file Replacement.h.
Referenced by clang::tooling::Replacement::apply(), combineAndSortRanges(), clang::tooling::Replacement::getLength(), operator==(), and clang::tooling::Replacement::toString().
|
inline |
Accessors.
Definition at line 51 of file Replacement.h.
Referenced by clang::tooling::Replacement::apply(), combineAndSortRanges(), clang::tooling::Replacement::getOffset(), operator==(), and clang::tooling::Replacement::toString().
Whether this range equals to RHS
or not.
Definition at line 69 of file Replacement.h.
References getLength(), and getOffset().
Definition at line 58 of file Replacement.h.
Referenced by clang::tooling::Replacements::add().