| 114 | #define check(...) check_(__FILE__, __LINE__, __VA_ARGS__) |
| 115 | template<size_t size> |
| 116 | void check_(const char* file, int line, const char (&code)[size]) { |
| 117 | // Tokenize.. |
| 118 | SimpleTokenizer tokenizer(settings, *this); |
| 119 | ASSERT_LOC(tokenizer.tokenize(code), file, line); |
| 120 | |
| 121 | // Check for memory leaks.. |
| 122 | CheckMemoryLeakInFunctionImpl checkMemoryLeak(&tokenizer, settings, *this); |
| 123 | checkMemoryLeak.checkReallocUsage(); |
| 124 | } |
| 125 | |
| 126 | |
| 127 | void run() override { |
nothing calls this directly
no test coverage detected