Represents a range in source code.

Synopsis

Declared in <llvm/Support/SMLoc.h>

class SMRange;

Description

SMRange is implemented using a half‐open range, as is the convention in C++. In the string "abc", the range [1,3) represents the substring "bc", and the] range [2,2) represents an empty range between the characters "b" and "c".]

Member Functions

Name

Description

SMRange [constructor]

Constructors

isValid

Return true if this range has a valid start (and thus a valid end).

Data Members

Name

Description

End

Exclusive end of the half‐open source range.

Start

Inclusive start of the half‐open source range.

Created with MrDocs