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

Method checkOpertorEqToSelf_

test/testclass.cpp:1691–1699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1689#define checkOpertorEqToSelf(...) checkOpertorEqToSelf_( __FILE__, __LINE__, __VA_ARGS__)
1690 template<size_t size>
1691 void checkOpertorEqToSelf_(const char* file, int line, const char (&code)[size]) {
1692 // Tokenize..
1693 SimpleTokenizer tokenizer(settings1, *this);
1694 ASSERT_LOC(tokenizer.tokenize(code), file, line);
1695
1696 // Check..
1697 CheckClassImpl checkClass(&tokenizer, settings1, *this);
1698 checkClass.operatorEqToSelf();
1699 }
1700
1701 void operatorEqToSelf1() {
1702 // this test has an assignment test but it is not needed

Callers

nothing calls this directly

Calls 2

tokenizeMethod · 0.80
operatorEqToSelfMethod · 0.80

Tested by

no test coverage detected