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

Method checkOpertorEqRetRefThis_

test/testclass.cpp:1220–1228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1218#define checkOpertorEqRetRefThis(...) checkOpertorEqRetRefThis_( __FILE__, __LINE__, __VA_ARGS__)
1219 template<size_t size>
1220 void checkOpertorEqRetRefThis_(const char* file, int line, const char (&code)[size]) {
1221 // Tokenize..
1222 SimpleTokenizer tokenizer(settings0, *this);
1223 ASSERT_LOC(tokenizer.tokenize(code), file, line);
1224
1225 // Check..
1226 CheckClassImpl checkClass(&tokenizer, settings0, *this);
1227 checkClass.operatorEqRetRefThis();
1228 }
1229
1230 void operatorEqRetRefThis1() {
1231 checkOpertorEqRetRefThis(

Callers

nothing calls this directly

Calls 2

tokenizeMethod · 0.80
operatorEqRetRefThisMethod · 0.80

Tested by

no test coverage detected