| 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" |
nothing calls this directly
no test coverage detected