| 318 | #define checkStructMemberUsageP(...) checkStructMemberUsageP_(__FILE__, __LINE__, __VA_ARGS__) |
| 319 | template<size_t size> |
| 320 | void checkStructMemberUsageP_(const char* file, int line, const char (&code)[size]) { |
| 321 | SimpleTokenizer2 tokenizer(settings, *this, code, "test.cpp"); |
| 322 | |
| 323 | // Tokenizer.. |
| 324 | ASSERT_LOC(tokenizer.simplifyTokens1(""), file, line); |
| 325 | |
| 326 | // Check for unused variables.. |
| 327 | CheckUnusedVarImpl checkUnusedVar(&tokenizer, settings, *this); |
| 328 | (checkUnusedVar.checkStructMemberUsage)(); |
| 329 | } |
| 330 | |
| 331 | #define checkFunctionVariableUsageP(...) checkFunctionVariableUsageP_(__FILE__, __LINE__, __VA_ARGS__) |
| 332 | template<size_t size> |
nothing calls this directly
no test coverage detected