FE 0.6.0
A header-only C++ library for writing frontends
|
Use/derive from this class for "global" variables that you need all over the place. More...
#include <fe/driver.h>
Diagnostics | |
template<class... Args> | |
static void | note (Loc loc, format::format_string< Args... > fmt, Args &&... args) |
template<class... Args> | |
void | warn (Loc loc, format::format_string< Args... > fmt, Args &&... args) |
template<class... Args> | |
void | err (Loc loc, format::format_string< Args... > fmt, Args &&... args) |
unsigned | num_errors () const |
unsigned | num_warnings () const |
Additional Inherited Members | |
Public Types inherited from fe::SymPool | |
using | String = Sym::String |
Public Member Functions inherited from fe::SymPool | |
SymPool (const SymPool &)=delete | |
SymPool () noexcept | |
SymPool (SymPool &&other) noexcept | |
SymPool & | operator= (SymPool)=delete |
Sym | sym (std::string_view s) |
Sym | sym (const std::string &s) |
Sym | sym (const char *s) |
s is a null-terminated C-string. | |
Use/derive from this class for "global" variables that you need all over the place.
Well, there are not really global - that's the point of this class. Right now, it manages a SymPool (by inherting from it) and offers std::format
-based diagnostics.
|
inline |
|
inlinestatic |
|
inline |