LLVM 20.0.0git
|
Represents a range in source code. More...
#include "llvm/Support/SMLoc.h"
Public Member Functions | |
SMRange ()=default | |
SMRange (std::nullopt_t) | |
SMRange (SMLoc St, SMLoc En) | |
bool | isValid () const |
Public Attributes | |
SMLoc | Start |
SMLoc | End |
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".
|
default |
|
inline |
Definition at line 59 of file SMLoc.h.
References llvm::SMLoc::isValid(), and Start.
SMLoc llvm::SMRange::End |
Definition at line 50 of file SMLoc.h.
Referenced by llvm::FileCheckDiag::FileCheckDiag(), and SMRange().
SMLoc llvm::SMRange::Start |
Definition at line 50 of file SMLoc.h.
Referenced by llvm::FileCheckDiag::FileCheckDiag(), isValid(), llvm::Pattern::printFuzzyMatch(), printMatch(), printNoMatch(), and SMRange().