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

Method runChecks

lib/checkfunctions.cpp:856–873  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

854}
855
856void CheckFunctions::runChecks(const Tokenizer &tokenizer, ErrorLogger& errorLogger)
857{
858 CheckFunctionsImpl checkFunctions(&tokenizer, tokenizer.getSettings(), errorLogger);
859
860 checkFunctions.checkIgnoredReturnValue();
861 checkFunctions.checkMissingReturn(); // Missing "return" in exit path
862
863 // --check-library : functions with nonmatching configuration
864 checkFunctions.checkLibraryMatchFunctions();
865
866 checkFunctions.checkProhibitedFunctions();
867 checkFunctions.invalidFunctionUsage();
868 checkFunctions.checkMathFunctions();
869 checkFunctions.memsetZeroBytes();
870 checkFunctions.memsetInvalid2ndParam();
871 checkFunctions.returnLocalStdMove();
872 checkFunctions.useStandardLibrary();
873}
874
875void CheckFunctions::getErrorMessages(ErrorLogger& errorLogger, const Settings &settings) const
876{

Callers

nothing calls this directly

Calls 10

checkMissingReturnMethod · 0.80
invalidFunctionUsageMethod · 0.80
checkMathFunctionsMethod · 0.80
returnLocalStdMoveMethod · 0.80
useStandardLibraryMethod · 0.80
memsetZeroBytesMethod · 0.45
memsetInvalid2ndParamMethod · 0.45

Tested by

no test coverage detected