[#llvm-SMRange] = xref:llvm.adoc[llvm]::SMRange :relfileprefix: ../ :mrdocs: Represents a range in source code. == Synopsis Declared in `<llvm/Support/SMLoc.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- 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 [cols="1,4"] |=== | Name| Description | xref:llvm/SMRange/2constructor-02b.adoc[`SMRange`] [.small]#[constructor]# | Constructors | xref:llvm/SMRange/isValid.adoc[`isValid`] | Return true if this range has a valid start (and thus a valid end). |=== == Data Members [cols="1,4"] |=== | Name| Description | xref:llvm/SMRange/End.adoc[`End`] | Exclusive end of the half‐open source range. | xref:llvm/SMRange/Start.adoc[`Start`] | Inclusive start of the half‐open source range. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#