clang  3.9.0
Public Member Functions | List of all members
clang::tooling::Range Class Reference

A source range independent of the SourceManager. More...

#include <Replacement.h>

Public Member Functions

 Range ()
 
 Range (unsigned Offset, unsigned Length)
 
unsigned getOffset () const
 Accessors. More...
 
unsigned getLength () const
 
Range Predicates

Whether this range overlaps with RHS or not.

bool overlapsWith (Range RHS) const
 
bool contains (Range RHS) const
 Whether this range contains RHS or not. More...
 
bool operator== (const Range &RHS) const
 Whether this range equals to RHS or not. More...
 

Detailed Description

A source range independent of the SourceManager.

Definition at line 38 of file Replacement.h.

Constructor & Destructor Documentation

clang::tooling::Range::Range ( )
inline

Definition at line 40 of file Replacement.h.

clang::tooling::Range::Range ( unsigned  Offset,
unsigned  Length 
)
inline

Definition at line 41 of file Replacement.h.

Member Function Documentation

bool clang::tooling::Range::contains ( Range  RHS) const
inline

Whether this range contains RHS or not.

Definition at line 57 of file Replacement.h.

unsigned clang::tooling::Range::getLength ( ) const
inline
unsigned clang::tooling::Range::getOffset ( ) const
inline
bool clang::tooling::Range::operator== ( const Range RHS) const
inline

Whether this range equals to RHS or not.

Definition at line 63 of file Replacement.h.

References getLength(), and getOffset().

bool clang::tooling::Range::overlapsWith ( Range  RHS) const
inline

Definition at line 52 of file Replacement.h.


The documentation for this class was generated from the following file: