LLVM 19.0.0git
Public Member Functions | Static Public Member Functions | List of all members
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()

constexpr llvm::SMLoc::SMLoc ( )
constexprdefault

Member Function Documentation

◆ getFromPointer()

static SMLoc llvm::SMLoc::getFromPointer ( const char Ptr)
inlinestatic

◆ getPointer()

constexpr const char * llvm::SMLoc::getPointer ( ) const
inlineconstexpr

◆ isValid()

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

◆ operator!=()

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

Definition at line 32 of file SMLoc.h.

References Ptr, and RHS.

◆ operator==()

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

Definition at line 31 of file SMLoc.h.

References Ptr, and RHS.


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