| 356 | #define dump(...) dump_(__FILE__, __LINE__, __VA_ARGS__) |
| 357 | template<size_t size> |
| 358 | std::string dump_(const char* file, int line, const char (&code)[size], const CheckOptions& options = make_default_obj()) { |
| 359 | const Settings& s = options.debugwarnings ? settings1_d : settings1; |
| 360 | SimpleTokenizer tokenizer(s, *this); |
| 361 | |
| 362 | ASSERT_LOC(tokenizer.tokenize(code), file, line); |
| 363 | |
| 364 | std::ostringstream ostr; |
| 365 | (tokenizer.dump)(ostr); |
| 366 | |
| 367 | return ostr.str(); |
| 368 | } |
| 369 | |
| 370 | void template1() { |
| 371 | const char code[] = "template <class T> T f(T val) { T a; }\n" |
nothing calls this directly
no test coverage detected