| 492 | #define bailout(...) bailout_(__FILE__, __LINE__, __VA_ARGS__) |
| 493 | template<size_t size> |
| 494 | void bailout_(const char* file, int line, const char (&code)[size]) { |
| 495 | const Settings s = settingsBuilder().debugwarnings().build(); |
| 496 | |
| 497 | SimpleTokenizer2 tokenizer(s, *this, code, "test.cpp"); |
| 498 | |
| 499 | // Tokenize.. |
| 500 | ASSERT_LOC(tokenizer.simplifyTokens1(""), file, line); |
| 501 | } |
| 502 | |
| 503 | #define tokenValues(...) tokenValues_(__FILE__, __LINE__, __VA_ARGS__) |
| 504 | std::list<ValueFlow::Value> tokenValues_(const char* file, int line, const char code[], const char tokstr[], const Settings *s = nullptr, bool cpp = true) { |
nothing calls this directly
no test coverage detected