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

Method checkCopyConstructor_

test/testclass.cpp:749–757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

747#define checkCopyConstructor(...) checkCopyConstructor_( __FILE__, __LINE__, __VA_ARGS__)
748 template<size_t size>
749 void checkCopyConstructor_(const char* file, int line, const char (&code)[size]) {
750 // Tokenize..
751 SimpleTokenizer tokenizer(settings3, *this);
752 ASSERT_LOC(tokenizer.tokenize(code), file, line);
753
754 // Check..
755 CheckClassImpl checkClass(&tokenizer, settings3, *this);
756 checkClass.copyconstructors();
757 }
758
759 void copyConstructor1() {
760 checkCopyConstructor("class F\n"

Callers

nothing calls this directly

Calls 2

tokenizeMethod · 0.80
copyconstructorsMethod · 0.80

Tested by

no test coverage detected