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

Method runChecks

lib/checkbool.cpp:515–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513}
514
515void CheckBool::runChecks(const Tokenizer &tokenizer, ErrorLogger& errorLogger)
516{
517 CheckBoolImpl checkBool(&tokenizer, tokenizer.getSettings(), errorLogger);
518
519 // Checks
520 checkBool.checkComparisonOfBoolExpressionWithInt();
521 checkBool.checkComparisonOfBoolWithInt();
522 checkBool.checkAssignBoolToFloat();
523 checkBool.pointerArithBool();
524 checkBool.returnValueOfFunctionReturningBool();
525 checkBool.checkComparisonOfFuncReturningBool();
526 checkBool.checkComparisonOfBoolWithBool();
527 checkBool.checkIncrementBoolean();
528 checkBool.checkAssignBoolToPointer();
529 checkBool.checkBitwiseOnBoolean();
530}
531
532void CheckBool::getErrorMessages(ErrorLogger& errorLogger, const Settings &settings) const
533{

Callers

nothing calls this directly

Tested by

no test coverage detected