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

Method check_

test/testmemleak.cpp:116–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114#define check(...) check_(__FILE__, __LINE__, __VA_ARGS__)
115 template<size_t size>
116 void check_(const char* file, int line, const char (&code)[size]) {
117 // Tokenize..
118 SimpleTokenizer tokenizer(settings, *this);
119 ASSERT_LOC(tokenizer.tokenize(code), file, line);
120
121 // Check for memory leaks..
122 CheckMemoryLeakInFunctionImpl checkMemoryLeak(&tokenizer, settings, *this);
123 checkMemoryLeak.checkReallocUsage();
124 }
125
126
127 void run() override {

Callers

nothing calls this directly

Calls 2

tokenizeMethod · 0.80
checkReallocUsageMethod · 0.80

Tested by

no test coverage detected