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

Method getErrorMessages

lib/checkclass.cpp:3918–3961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3916}
3917
3918void 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}

Callers

nothing calls this directly

Calls 15

noConstructorErrorMethod · 0.80
noOperatorEqErrorMethod · 0.80
noDestructorErrorMethod · 0.80
uninitVarErrorMethod · 0.80
operatorEqVarErrorMethod · 0.80
memsetErrorMethod · 0.80
memsetErrorReferenceMethod · 0.80

Tested by

no test coverage detected