MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / functionVariableUsage_

Method functionVariableUsage_

test/testunusedvar.cpp:288–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

make_default_objClass · 0.85
tokenizeMethod · 0.80

Tested by

no test coverage detected