Thorin 1.9.0
The Higher ORder INtermediate representation
Loading...
Searching...
No Matches
thorin::Dbg Struct Reference

#include <thorin/util/dbg.h>

Public Member Functions

Constructors
constexpr Dbg () noexcept=default
 
constexpr Dbg (const Dbg &) noexcept=default
 
constexpr Dbg (Loc loc, Sym sym) noexcept
 
constexpr Dbg (Loc loc) noexcept
 
constexpr Dbg (Sym sym) noexcept
 
Dbgoperator= (const Dbg &) noexcept=default
 
Getters
Sym sym () const
 
Loc loc () const
 
bool is_anon () const
 
 operator bool () const
 
Setters
Dbgset (Sym sym)
 
Dbgset (Loc loc)
 

Friends

std::ostream & operator<< (std::ostream &os, const Dbg &dbg)
 

Detailed Description

Definition at line 127 of file dbg.h.

Constructor & Destructor Documentation

◆ Dbg() [1/5]

constexpr thorin::Dbg::Dbg ( )
constexprdefaultnoexcept

◆ Dbg() [2/5]

constexpr thorin::Dbg::Dbg ( const Dbg )
constexprdefaultnoexcept

◆ Dbg() [3/5]

constexpr thorin::Dbg::Dbg ( Loc  loc,
Sym  sym 
)
inlineconstexprnoexcept

Definition at line 133 of file dbg.h.

◆ Dbg() [4/5]

constexpr thorin::Dbg::Dbg ( Loc  loc)
inlineconstexprnoexcept

Definition at line 136 of file dbg.h.

◆ Dbg() [5/5]

constexpr thorin::Dbg::Dbg ( Sym  sym)
inlineconstexprnoexcept

Definition at line 138 of file dbg.h.

Member Function Documentation

◆ is_anon()

bool thorin::Dbg::is_anon ( ) const
inline

Definition at line 147 of file dbg.h.

◆ loc()

Loc thorin::Dbg::loc ( ) const
inline

Definition at line 146 of file dbg.h.

Referenced by thorin::ast::IdPtrn::mk_id().

◆ operator bool()

thorin::Dbg::operator bool ( ) const
inlineexplicit

Definition at line 148 of file dbg.h.

◆ operator=()

Dbg & thorin::Dbg::operator= ( const Dbg )
defaultnoexcept

◆ set() [1/2]

Dbg & thorin::Dbg::set ( Loc  loc)
inline

Definition at line 154 of file dbg.h.

◆ set() [2/2]

Dbg & thorin::Dbg::set ( Sym  sym)
inline

Definition at line 153 of file dbg.h.

Referenced by thorin::Def::debug_prefix(), and thorin::Def::debug_suffix().

◆ sym()

Sym thorin::Dbg::sym ( ) const
inline

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const Dbg dbg 
)
friend

Definition at line 161 of file dbg.h.


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