| 304 | #define tokenizeExpr(...) tokenizeExpr_(__FILE__, __LINE__, __VA_ARGS__) |
| 305 | template<size_t size> |
| 306 | std::string tokenizeExpr_(const char* file, int line, const char (&code)[size]) { |
| 307 | SimpleTokenizer2 tokenizer(settings, *this, code, "test.cpp"); |
| 308 | |
| 309 | ASSERT_LOC(tokenizer.simplifyTokens1(""), file, line); |
| 310 | |
| 311 | // result.. |
| 312 | Token::stringifyOptions options = Token::stringifyOptions::forDebugExprId(); |
| 313 | options.files = false; |
| 314 | return tokenizer.tokens()->stringifyList(options); |
| 315 | } |
| 316 | |
| 317 | #define compareVaridsForVariable(...) compareVaridsForVariable_(__FILE__, __LINE__, __VA_ARGS__) |
| 318 | template<size_t size> |
nothing calls this directly
no test coverage detected