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

Method checkStructMemberUsageP_

test/testunusedvar.cpp:320–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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>

Callers

nothing calls this directly

Calls 1

simplifyTokens1Method · 0.80

Tested by

no test coverage detected