| 3916 | } |
| 3917 | |
| 3918 | void CheckClass::getErrorMessages(ErrorLogger& errorLogger, const Settings &settings) const |
| 3919 | { |
| 3920 | CheckClassImpl c(nullptr, settings, errorLogger); |
| 3921 | c.noConstructorError(nullptr, "classname", false); |
| 3922 | c.noExplicitConstructorError(nullptr, "classname", false); |
| 3923 | //c.copyConstructorMallocError(nullptr, 0, "var"); |
| 3924 | c.copyConstructorShallowCopyError(nullptr, "var"); |
| 3925 | c.noCopyConstructorError(nullptr, false, nullptr, false); |
| 3926 | c.noOperatorEqError(nullptr, false, nullptr, false); |
| 3927 | c.noDestructorError(nullptr, false, nullptr); |
| 3928 | c.uninitVarError(nullptr, false, FunctionType::eConstructor, "classname", "varname", false, false); |
| 3929 | c.uninitVarError(nullptr, true, FunctionType::eConstructor, "classname", "varnamepriv", false, false); |
| 3930 | c.uninitVarError(nullptr, false, FunctionType::eConstructor, "classname", "varname", true, false); |
| 3931 | c.uninitVarError(nullptr, true, FunctionType::eConstructor, "classname", "varnamepriv", true, false); |
| 3932 | c.missingMemberCopyError(nullptr, FunctionType::eConstructor, "classname", "varnamepriv"); |
| 3933 | c.operatorEqVarError(nullptr, "classname", "", false); |
| 3934 | c.unusedPrivateFunctionError(nullptr, nullptr, "classname", "funcname"); |
| 3935 | c.memsetError(nullptr, "memfunc", "classname", "class"); |
| 3936 | c.memsetErrorReference(nullptr, "memfunc", "class"); |
| 3937 | c.memsetErrorFloat(nullptr, "class"); |
| 3938 | c.mallocOnClassWarning(nullptr, "malloc", nullptr); |
| 3939 | c.mallocOnClassError(nullptr, "malloc", nullptr, "std::string"); |
| 3940 | c.virtualDestructorError(nullptr, "Base", "Derived", false); |
| 3941 | c.thisSubtractionError(nullptr); |
| 3942 | c.operatorEqRetRefThisError(nullptr); |
| 3943 | c.operatorEqMissingReturnStatementError(nullptr, true); |
| 3944 | c.operatorEqShouldBeLeftUnimplementedError(nullptr); |
| 3945 | c.operatorEqToSelfError(nullptr); |
| 3946 | c.checkConstError(nullptr, "class", "function", false); |
| 3947 | c.checkConstError(nullptr, "class", "function", true); |
| 3948 | c.initializerListError(nullptr, nullptr, "class", "variable"); |
| 3949 | c.suggestInitializationList(nullptr, "variable"); |
| 3950 | c.selfInitializationError(nullptr, "var"); |
| 3951 | c.duplInheritedMembersError(nullptr, nullptr, "class", "class", "variable", false, false); |
| 3952 | c.copyCtorAndEqOperatorError(nullptr, "class", false, false); |
| 3953 | c.overrideError(nullptr, nullptr); |
| 3954 | c.uselessOverrideError(nullptr, nullptr); |
| 3955 | c.returnByReferenceError(nullptr, nullptr); |
| 3956 | c.pureVirtualFunctionCallInConstructorError(nullptr, std::list<const Token *>(), "f"); |
| 3957 | c.virtualFunctionCallInConstructorError(nullptr, std::list<const Token *>(), "f"); |
| 3958 | c.thisUseAfterFree(nullptr, nullptr, nullptr); |
| 3959 | c.unsafeClassRefMemberError(nullptr, "UnsafeClass::var"); |
| 3960 | // TODO: ctuOneDefinitionRuleViolation |
| 3961 | } |
nothing calls this directly
no test coverage detected