class Range

Declaration

class Range { /* full declaration omitted */ };

Description

A source range independent of the \c SourceManager.

Declared at: clang/include/clang/Tooling/Core/Replacement.h:44

Member Variables

private unsigned int Offset = 0
@ }
private unsigned int Length = 0

Method Overview

  • public Range()
  • public Range(unsigned int Offset, unsigned int Length)
  • public bool contains(clang::tooling::Range RHS) const
  • public unsigned int getLength() const
  • public unsigned int getOffset() const
  • public bool overlapsWith(clang::tooling::Range RHS) const

Methods

Range()

Declared at: clang/include/clang/Tooling/Core/Replacement.h:46

Range(unsigned int Offset, unsigned int Length)

Declared at: clang/include/clang/Tooling/Core/Replacement.h:47

Parameters

unsigned int Offset
unsigned int Length

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

Description

Whether this range contains \p RHS or not.

Declared at: clang/include/clang/Tooling/Core/Replacement.h:63

Parameters

clang::tooling::Range RHS

unsigned int getLength() const

Declared at: clang/include/clang/Tooling/Core/Replacement.h:52

unsigned int getOffset() const

Description

Accessors. @ {

Declared at: clang/include/clang/Tooling/Core/Replacement.h:51

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

Description

@ { Whether this range overlaps with \p RHS or not.

Declared at: clang/include/clang/Tooling/Core/Replacement.h:58

Parameters

clang::tooling::Range RHS