LLVM 22.0.0git
llvm::SMLoc Class Reference

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 chargetPointer () const

Static Public Member Functions

static SMLoc getFromPointer (const char *Ptr)

Detailed Description

Represents a location in source code.

Definition at line 23 of file SMLoc.h.

Constructor & Destructor Documentation

◆ SMLoc()

llvm::SMLoc::SMLoc ( )
constexprdefault

Member Function Documentation

◆ getFromPointer()

◆ getPointer()

◆ isValid()

bool llvm::SMLoc::isValid ( ) const
inlineconstexpr

Definition at line 29 of file SMLoc.h.

Referenced by llvm::lsp::Range::getAsSMRange(), and llvm::SourceMgr::PrintMessage().

◆ operator!=()

bool llvm::SMLoc::operator!= ( const SMLoc & RHS) const
inlineconstexpr

Definition at line 32 of file SMLoc.h.

References RHS, and SMLoc().

◆ operator==()

bool llvm::SMLoc::operator== ( const SMLoc & RHS) const
inlineconstexpr

Definition at line 31 of file SMLoc.h.

References RHS, and SMLoc().


The documentation for this class was generated from the following file: