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

Method check_

test/testcharvar.cpp:44–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42#define check(...) check_(__FILE__, __LINE__, __VA_ARGS__)
43 template<size_t size>
44 void check_(const char* file, int line, const char (&code)[size]) {
45 // Tokenize..
46 SimpleTokenizer tokenizer(settings, *this);
47 ASSERT_LOC(tokenizer.tokenize(code), file, line);
48
49 // Check char variable usage..
50 CheckOtherImpl checkOther(&tokenizer, settings, *this);
51 checkOther.checkCharVariable();
52 }
53
54 void array_index_1() {
55 check("int buf[256];\n"

Callers

nothing calls this directly

Calls 2

tokenizeMethod · 0.80
checkCharVariableMethod · 0.80

Tested by

no test coverage detected