MCPcopy Create free account
hub / github.com/Genivia/RE-flex / warning

Method warning

src/reflex.cpp:1454–1463  ·  view source on GitHub ↗

Report a warning

Source from the content-addressed store, hash-verified

1452
1453/// Report a warning
1454void Reflex::warning(const char *message, const char *arg, size_t at_lineno)
1455{
1456 if (options["nowarn"].empty())
1457 std::cerr <<
1458 SGR("\033[0m") << (infile.empty() ? "(stdin)" : infile.c_str()) << ":" << (at_lineno ? at_lineno : lineno) << ": " <<
1459 SGR("\033[1;35m") << "warning: " << SGR("\033[0m") <<
1460 message <<
1461 SGR("\033[1m") << (arg != NULL ? arg : "") << SGR("\033[0m") <<
1462 std::endl;
1463}
1464
1465/// Parse section 1 of a lex specification
1466void Reflex::parse_section_1()

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected