NewLang Project
Yet another programm language
Loading...
Searching...
No Matches
diag.h File Reference
#include "types.h"
#include "warning_push.h"
#include "parser.yy.h"
#include "warning_pop.h"
Include dependency graph for diag.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  newlang::Diag
 
struct  newlang::Diag::DataDiag
 

Namespaces

namespace  newlang
 

Macros

#define DIAG_STATE(_)
 
#define DEFINE_ENUM(name)   name,
 
#define DEFINE_CASE(name)
 

Macro Definition Documentation

◆ DIAG_STATE

#define DIAG_STATE ( _)
Value:
_(none) /* not exist */ \
_(flag) /* set flag only (-w, -Weverything, -pedantic, -fdiagnostics-format=clang/msvc/vi ...) */ \
_(option) /* enable or disable diagnostic (-f[no-]caret-diagnostics, -f[no-]show-source-location ...) */ \
_(ignored) /* mutable diagnostic status -Wfoo, -Wno-foo, -Werror=foo, -Wno-error=foo */ \
_(warning) /* mutable diagnostic status -Wfoo, -Wno-foo, -Werror=foo, -Wno-error=foo */ \
_(error) /* mutable diagnostic status -Wfoo, -Wno-foo, -Werror=foo, -Wno-error=foo */

Definition at line 36 of file diag.h.

Referenced by newlang::Diag::toString().

◆ DEFINE_ENUM

#define DEFINE_ENUM ( name)    name,

Definition at line 45 of file diag.h.

◆ DEFINE_CASE

#define DEFINE_CASE ( name)