LLVM API Documentation
Represents a location in source code. More...
#include <SMLoc.h>
Public Member Functions | |
SMLoc () | |
bool | isValid () const |
bool | operator== (const SMLoc &RHS) const |
bool | operator!= (const SMLoc &RHS) const |
const char * | getPointer () const |
Static Public Member Functions | |
static SMLoc | getFromPointer (const char *Ptr) |
llvm::SMLoc::SMLoc | ( | ) | [inline] |
static SMLoc llvm::SMLoc::getFromPointer | ( | const char * | Ptr | ) | [inline, static] |
Definition at line 35 of file SMLoc.h.
Referenced by llvm::X86Operand::CreateToken(), llvm::AsmToken::getEndLoc(), llvm::SourceMgr::getLineAndColumn(), llvm::LLLexer::getLoc(), llvm::AsmToken::getLoc(), llvm::TGLexer::getLoc(), llvm::MCAsmLexer::getLoc(), llvm::SourceMgr::GetMessage(), llvm::yaml::Node::Node(), llvm::PrintError(), llvm::PrintWarning(), RewriteIntelBracExpression(), llvm::yaml::ScalarNode::ScalarNode(), and llvm::yaml::Scanner::setError().
const char* llvm::SMLoc::getPointer | ( | ) | const [inline] |
Definition at line 33 of file SMLoc.h.
Referenced by buildFixItLine(), llvm::X86Operand::CreateToken(), llvm::SourceMgr::FindBufferContainingLoc(), llvm::SourceMgr::getLineAndColumn(), llvm::SourceMgr::GetMessage(), llvm::X86Operand::isOffsetOf(), llvm::SMFixIt::operator<(), llvm::SMDiagnostic::print(), RewriteIntelBracExpression(), and rewritesSort().
bool llvm::SMLoc::isValid | ( | ) | const [inline] |
Definition at line 28 of file SMLoc.h.
Referenced by llvm::SourceMgr::GetMessage(), llvm::SMRange::isValid(), llvm::SourceMgr::PrintMessage(), llvm::SMFixIt::SMFixIt(), and llvm::SMRange::SMRange().