#include <thorin/util/dbg.h>
|
|
| Error ()=default |
|
| Error (const Error &)=default |
|
| Error (Error &&other) |
|
| Error (Loc loc, const std::string &str) |
| Creates a single Tag::Error message.
|
|
|
const auto & | msgs () const |
|
size_t | num_msgs () const |
|
size_t | num_errors () const |
|
size_t | num_warnings () const |
|
size_t | num_notes () const |
|
|
template<class... Args> |
Error & | msg (Loc loc, Tag tag, const char *s, Args &&... args) |
|
template<class... Args> |
Error & | error (Loc loc, const char *s, Args &&... args) |
|
template<class... Args> |
Error & | warn (Loc loc, const char *s, Args &&... args) |
|
template<class... Args> |
Error & | note (Loc loc, const char *s, Args &&... args) |
|
|
void | clear () |
|
void | ack (std::ostream &os=std::cerr) |
| If errors occured, claim them and throw; if warnings occured, claim them and report to os .
|
|
Definition at line 17 of file dbg.h.
◆ Tag
Enumerator |
---|
Error | |
Warn | |
Note | |
Definition at line 19 of file dbg.h.
◆ Error() [1/4]
◆ Error() [2/4]
thorin::Error::Error |
( |
const Error & |
| ) |
|
|
default |
◆ Error() [3/4]
thorin::Error::Error |
( |
Error && |
other | ) |
|
|
inline |
◆ Error() [4/4]
thorin::Error::Error |
( |
Loc |
loc, |
|
|
const std::string & |
str |
|
) |
| |
|
inline |
◆ ack()
void thorin::Error::ack |
( |
std::ostream & |
os = std::cerr | ) |
|
◆ clear()
void thorin::Error::clear |
( |
| ) |
|
◆ error()
template<class... Args>
Error & thorin::Error::error |
( |
Loc |
loc, |
|
|
const char * |
s, |
|
|
Args &&... |
args |
|
) |
| |
|
inline |
◆ msg()
template<class... Args>
Error & thorin::Error::msg |
( |
Loc |
loc, |
|
|
Tag |
tag, |
|
|
const char * |
s, |
|
|
Args &&... |
args |
|
) |
| |
|
inline |
◆ msgs()
const auto & thorin::Error::msgs |
( |
| ) |
const |
|
inline |
Definition at line 53 of file dbg.h.
◆ note()
template<class... Args>
Error & thorin::Error::note |
( |
Loc |
loc, |
|
|
const char * |
s, |
|
|
Args &&... |
args |
|
) |
| |
|
inline |
◆ num_errors()
size_t thorin::Error::num_errors |
( |
| ) |
const |
|
inline |
Definition at line 58 of file dbg.h.
◆ num_msgs()
size_t thorin::Error::num_msgs |
( |
| ) |
const |
|
inline |
Definition at line 54 of file dbg.h.
◆ num_notes()
size_t thorin::Error::num_notes |
( |
| ) |
const |
|
inline |
Definition at line 60 of file dbg.h.
◆ num_warnings()
size_t thorin::Error::num_warnings |
( |
| ) |
const |
|
inline |
◆ warn()
template<class... Args>
Error & thorin::Error::warn |
( |
Loc |
loc, |
|
|
const char * |
s, |
|
|
Args &&... |
args |
|
) |
| |
|
inline |
◆ operator<< [1/2]
std::ostream & operator<< |
( |
std::ostream & |
o, |
|
|
Tag |
tag |
|
) |
| |
|
friend |
Definition at line 86 of file dbg.h.
◆ operator<< [2/2]
std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
const Error & |
e |
|
) |
| |
|
friend |
Definition at line 97 of file dbg.h.
◆ swap
The documentation for this class was generated from the following files: