1 #ifndef _RE2C_CONF_WARN_
2 #define _RE2C_CONF_WARN_
13 #define RE2C_WARNING_TYPES \
14 W (CONDITION_ORDER, "condition-order"), \
15 W (EMPTY_CHARACTER_CLASS, "empty-character-class"), \
16 W (MATCH_EMPTY_STRING, "match-empty-string"), \
17 W (SWAPPED_RANGE, "swapped-range"), \
18 W (UNDEFINED_CONTROL_FLOW, "undefined-control-flow"), \
19 W (UNREACHABLE_RULES, "unreachable-rules"), \
20 W (USELESS_ESCAPE, "useless-escape"),
41 static const uint32_t SILENT;
42 static const uint32_t WARNING;
43 static const uint32_t ERROR;
44 static const char * names [
TYPES];
54 void fail (
type_t t, uint32_t line,
const char * s);
60 void undefined_control_flow (uint32_t line,
const std::string & cond, std::vector<way_t> & ways,
bool overflow);
67 #endif // _RE2C_CONF_WARN_
void undefined_control_flow(uint32_t line, const std::string &cond, std::vector< way_t > &ways, bool overflow)
void swapped_range(uint32_t line, uint32_t l, uint32_t u)
std::map< rule_rank_t, rule_info_t > rules_t
void empty_class(uint32_t line)
void match_empty_string(uint32_t line)
void useless_escape(uint32_t line, uint32_t col, char c)
#define RE2C_WARNING_TYPES
void unreachable_rule(const std::string &cond, const rule_info_t &rule, const rules_t &rules)
void fail(type_t t, uint32_t line, const char *s)
void condition_order(uint32_t line)
void set(type_t t, option_t o)