LLVM 20.0.0git
|
Represents a location in source code. More...
#include "llvm/Support/SMLoc.h"
Public Member Functions | |
constexpr | SMLoc ()=default |
constexpr bool | isValid () const |
constexpr bool | operator== (const SMLoc &RHS) const |
constexpr bool | operator!= (const SMLoc &RHS) const |
constexpr const char * | getPointer () const |
Static Public Member Functions | |
static SMLoc | getFromPointer (const char *Ptr) |
|
constexprdefault |
Definition at line 36 of file SMLoc.h.
References Ptr.
Referenced by llvm::yaml::BlockScalarNode::BlockScalarNode(), llvm::FileCheckString::CheckDag(), llvm::FileCheckString::CheckNext(), llvm::FileCheckString::CheckSame(), llvm::X86Operand::CreateToken(), llvm::SourceMgr::FindLocForLineAndColumn(), llvm::ErrorDiagnostic::get(), llvm::AsmToken::getEndLoc(), llvm::LLLexer::getLoc(), llvm::AsmToken::getLoc(), llvm::MCAsmLexer::getLoc(), llvm::TGLexer::getLoc(), llvm::TGLexer::getLocRange(), llvm::SourceMgr::GetMessage(), incrementLoc(), isAngleBracketString(), parseCC(), llvm::Pattern::parseNumericSubstitutionBlock(), llvm::Pattern::parsePattern(), parseRD(), llvm::parseType(), llvm::PrintError(), llvm::Pattern::printVariableDefs(), llvm::PrintWarning(), ProcessMatchResult(), llvm::FileCheck::readCheckFile(), llvm::yaml::ScalarNode::ScalarNode(), and llvm::yaml::Scanner::setError().
Definition at line 34 of file SMLoc.h.
References Ptr.
Referenced by llvm::X86Operand::CreateToken(), llvm::SourceMgr::FindBufferContainingLoc(), llvm::SourceMgr::getLineAndColumn(), llvm::SourceMgr::GetMessage(), isAngleBracketString(), parseCC(), parseRD(), llvm::SMDiagnostic::print(), and rewritesSort().
|
inlineconstexpr |
Definition at line 29 of file SMLoc.h.
References Ptr.
Referenced by llvm::SourceMgr::GetMessage(), llvm::SMRange::isValid(), llvm::SourceMgr::PrintMessage(), and llvm::SMRange::SMRange().