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

Method checkThisSubtraction_

test/testclass.cpp:3637–3645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3635#define checkThisSubtraction(...) checkThisSubtraction_(__FILE__, __LINE__, __VA_ARGS__)
3636 template<size_t size>
3637 void checkThisSubtraction_(const char* file, int line, const char (&code)[size]) {
3638 // Tokenize..
3639 SimpleTokenizer tokenizer(settings1, *this);
3640 ASSERT_LOC(tokenizer.tokenize(code), file, line);
3641
3642 // Check..
3643 CheckClassImpl checkClass(&tokenizer, settings1, *this);
3644 checkClass.thisSubtraction();
3645 }
3646
3647 void this_subtraction() {
3648 checkThisSubtraction("; this-x ;");

Callers

nothing calls this directly

Calls 2

tokenizeMethod · 0.80
thisSubtractionMethod · 0.80

Tested by

no test coverage detected