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

Method checkP_

test/testsizeof.cpp:63–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61#define checkP(...) checkP_(__FILE__, __LINE__, __VA_ARGS__)
62 template<size_t size>
63 void checkP_(const char* file, int line, const char (&code)[size]) {
64 SimpleTokenizer2 tokenizer(settings, *this, code, "test.cpp");
65
66 // Tokenize..
67 ASSERT_LOC(tokenizer.simplifyTokens1(""), file, line);
68
69 CheckSizeof check;
70 runChecks(check, tokenizer, *this);
71 }
72
73 void sizeofsizeof() {
74 check("void foo()\n"

Callers

nothing calls this directly

Calls 1

simplifyTokens1Method · 0.80

Tested by

no test coverage detected