| 286 | |
| 287 | #define functionVariableUsage(...) functionVariableUsage_(__FILE__, __LINE__, __VA_ARGS__) |
| 288 | void functionVariableUsage_(const char* file, int line, const char code[], const FunctionVariableUsageOptions& options = make_default_obj()) { |
| 289 | // Tokenize.. |
| 290 | SimpleTokenizer tokenizer(settings, *this, options.cpp); |
| 291 | ASSERT_LOC(tokenizer.tokenize(code), file, line); |
| 292 | |
| 293 | // Check for unused variables.. |
| 294 | CheckUnusedVarImpl checkUnusedVar(&tokenizer, settings, *this); |
| 295 | checkUnusedVar.checkFunctionVariableUsage(); |
| 296 | } |
| 297 | |
| 298 | struct CheckStructMemberUsageOptions |
| 299 | { |
nothing calls this directly
no test coverage detected