class SMRange
Declaration
class SMRange { /* full declaration omitted */ };
Description
Represents a range in source code. 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".
Declared at: llvm/include/llvm/Support/SMLoc.h:48
Member Variables
- public llvm::SMLoc Start
- public llvm::SMLoc End
Method Overview
- public SMRange()
- public SMRange(llvm::NoneType)
- public SMRange(llvm::SMLoc St, llvm::SMLoc En)
- public bool isValid() const
Methods
¶SMRange()
SMRange()
Declared at: llvm/include/llvm/Support/SMLoc.h:52
¶SMRange(llvm::NoneType)
SMRange(llvm::NoneType)
Declared at: llvm/include/llvm/Support/SMLoc.h:53
Parameters
- llvm::NoneType
¶SMRange(llvm::SMLoc St, llvm::SMLoc En)
SMRange(llvm::SMLoc St, llvm::SMLoc En)
Declared at: llvm/include/llvm/Support/SMLoc.h:54
Parameters
- llvm::SMLoc St
- llvm::SMLoc En
¶bool isValid() const
bool isValid() const
Declared at: llvm/include/llvm/Support/SMLoc.h:59