|
LLVM
4.0.0
|
Represents a range in source code. More...
#include <SMLoc.h>
Public Member Functions | |
| SMRange ()=default | |
| SMRange (NoneType) | |
| 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 60 of file SMLoc.h.
References llvm::SMLoc::isValid(), and Start.
Referenced by llvm::SourceMgr::GetMessage(), and llvm::SMFixIt::SMFixIt().
| SMLoc llvm::SMRange::End |
Definition at line 51 of file SMLoc.h.
Referenced by buildFixItLine(), llvm::SourceMgr::GetMessage(), llvm::SMFixIt::operator<(), and SMRange().
| SMLoc llvm::SMRange::Start |
Definition at line 51 of file SMLoc.h.
Referenced by buildFixItLine(), llvm::SourceMgr::GetMessage(), llvm::MIRParserImpl::initializeFrameInfo(), isValid(), llvm::SMFixIt::operator<(), llvm::yaml::Stream::printError(), SMRange(), and typecheckMDNode().
1.8.6