FE 0.13.1
Header-only C++ frontend library
Loading...
Searching...
No Matches
fe::Dbg Struct Reference

The debug info of an entity: where it came from and what it was called. More...

#include <fe/dbg.h>

Classes

struct  Hash
struct  Eq

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
 Assumes _ as the anonymous name.
 operator bool () const
Setters
Dbgset (Sym sym)
Dbgset (Loc loc)
Comparison and Hashing
bool operator== (const Dbg &other) const noexcept

Friends

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

Detailed Description

The debug info of an entity: where it came from and what it was called.

Definition at line 22 of file dbg.h.

Constructor & Destructor Documentation

◆ Dbg() [1/5]

fe::Dbg::Dbg ( )
constexprdefaultnoexcept

◆ Dbg() [2/5]

fe::Dbg::Dbg ( const Dbg & )
constexprdefaultnoexcept

References Dbg().

◆ Dbg() [3/5]

fe::Dbg::Dbg ( Loc loc,
Sym sym )
inlineconstexprnoexcept

Definition at line 28 of file dbg.h.

References Dbg(), loc(), and sym().

◆ Dbg() [4/5]

fe::Dbg::Dbg ( Loc loc)
inlineconstexprnoexcept

Definition at line 31 of file dbg.h.

References loc().

◆ Dbg() [5/5]

fe::Dbg::Dbg ( Sym sym)
inlineconstexprnoexcept

Definition at line 33 of file dbg.h.

References sym().

Member Function Documentation

◆ is_anon()

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

Assumes _ as the anonymous name.

Definition at line 42 of file dbg.h.

References sym().

◆ loc()

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

Definition at line 41 of file dbg.h.

Referenced by Dbg(), Dbg(), and set().

◆ operator bool()

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

Definition at line 43 of file dbg.h.

References sym().

◆ operator=()

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

References Dbg().

◆ operator==()

bool fe::Dbg::operator== ( const Dbg & other) const
inlinenoexcept
Note
Like Loc::operator==, this only compares Loc::src by pointer identity.

Definition at line 55 of file dbg.h.

References Dbg().

◆ set() [1/2]

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

Definition at line 49 of file dbg.h.

References Dbg(), and loc().

◆ set() [2/2]

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

Definition at line 48 of file dbg.h.

References Dbg(), and sym().

◆ sym()

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

Definition at line 40 of file dbg.h.

Referenced by Dbg(), Dbg(), is_anon(), operator bool(), operator<<, and set().

◆ operator<<

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

Definition at line 82 of file dbg.h.

References Dbg(), and sym().


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