| 292 | #define tokenizeHeader(...) tokenizeHeader_(__FILE__, __LINE__, __VA_ARGS__) |
| 293 | template<size_t size> |
| 294 | std::string tokenizeHeader_(const char* file, int line, const char (&code)[size], const char filename[]) { |
| 295 | SimpleTokenizer tokenizer{settings, *this, std::string(filename)}; |
| 296 | ASSERT_LOC((tokenizer.tokenize)(code), file, line); |
| 297 | |
| 298 | // result.. |
| 299 | Token::stringifyOptions options = Token::stringifyOptions::forDebugVarId(); |
| 300 | options.files = false; |
| 301 | return tokenizer.tokens()->stringifyList(options); |
| 302 | } |
| 303 | |
| 304 | #define tokenizeExpr(...) tokenizeExpr_(__FILE__, __LINE__, __VA_ARGS__) |
| 305 | template<size_t size> |
nothing calls this directly
no test coverage detected