| 42 | #define check(...) check_(__FILE__, __LINE__, __VA_ARGS__) |
| 43 | template<size_t size> |
| 44 | void check_(const char* file, int line, const char (&code)[size]) { |
| 45 | // Tokenize.. |
| 46 | SimpleTokenizer tokenizer(settings, *this); |
| 47 | ASSERT_LOC(tokenizer.tokenize(code), file, line); |
| 48 | |
| 49 | // Check char variable usage.. |
| 50 | CheckOtherImpl checkOther(&tokenizer, settings, *this); |
| 51 | checkOther.checkCharVariable(); |
| 52 | } |
| 53 | |
| 54 | void array_index_1() { |
| 55 | check("int buf[256];\n" |
nothing calls this directly
no test coverage detected