| 551 | #define tokenizeAndStringify(...) tokenizeAndStringify_(__FILE__, __LINE__, __VA_ARGS__) |
| 552 | template<size_t size> |
| 553 | std::string tokenizeAndStringify_(const char* file, int linenr, const char (&code)[size], const TokenizeOptions& opt = make_default_obj{}) { |
| 554 | // tokenize.. |
| 555 | SimpleTokenizer tokenizer(settings2, *this, opt.cpp); |
| 556 | ASSERT_LOC(tokenizer.tokenize(code), file, linenr); |
| 557 | |
| 558 | if (tokenizer.tokens()) |
| 559 | return tokenizer.tokens()->stringifyList(false, opt.expand, false, true, false, nullptr, nullptr); |
| 560 | return ""; |
| 561 | } |
| 562 | |
| 563 | // TODO: get rid of this |
| 564 | std::string tokenizeAndStringify_(const char* file, int linenr, const std::string& code) { |
nothing calls this directly
no test coverage detected