Cppcheck
|
Check for condition mismatches. More...
#include <checkcondition.h>
Public Member Functions | |
CheckCondition () | |
This constructor is used when registering the CheckAssignIf. More... | |
Public Member Functions inherited from Check | |
Check (const std::string &aname) | |
This constructor is used when registering the CheckClass. More... | |
virtual | ~Check () |
Check (const Check &)=delete | |
Check & | operator= (const Check &)=delete |
const std::string & | name () const |
class name, used to generate documentation More... | |
virtual FileInfo * | getFileInfo (const Tokenizer &, const Settings &) const |
virtual FileInfo * | loadFileInfoFromXml (const tinyxml2::XMLElement *xmlElement) const |
virtual bool | analyseWholeProgram (const CTU::FileInfo *ctu, const std::list< FileInfo * > &fileInfo, const Settings &, ErrorLogger &) |
Private Member Functions | |
CheckCondition (const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) | |
This constructor is used when running checks. More... | |
void | runChecks (const Tokenizer &tokenizer, ErrorLogger *errorLogger) override |
run checks, the token list is not simplified More... | |
void | assignIf () |
mismatching assignment / comparison More... | |
bool | assignIfParseScope (const Token *const assignTok, const Token *const startTok, const nonneg int varid, const bool islocal, const char bitop, const MathLib::bigint num) |
parse scopes recursively More... | |
void | checkBadBitmaskCheck () |
check bitmask using | instead of & More... | |
void | comparison () |
mismatching lhs and rhs in comparison More... | |
void | duplicateCondition () |
void | multiCondition () |
match 'if' and 'else if' conditions More... | |
void | multiCondition2 () |
multiconditions #2 More... | |
void | checkIncorrectLogicOperator () |
Check for testing for mutual exclusion over || More... | |
void | checkModuloAlwaysTrueFalse () |
Check for suspicious usage of modulo (e.g. More... | |
void | clarifyCondition () |
Suspicious condition (assignment+comparison) More... | |
void | alwaysTrueFalse () |
Condition is always true/false. More... | |
void | checkInvalidTestForOverflow () |
Check for invalid test for overflow 'x+100 < x' More... | |
void | checkPointerAdditionResultNotNull () |
Check if pointer addition result is NULL '(ptr + 1) == NULL'. More... | |
void | checkDuplicateConditionalAssign () |
void | checkAssignmentInCondition () |
Assignment in condition. More... | |
bool | diag (const Token *tok, bool insert=true) |
bool | isAliased (const std::set< int > &vars) const |
bool | isOverlappingCond (const Token *const cond1, const Token *const cond2, bool pure) const |
void | assignIfError (const Token *tok1, const Token *tok2, const std::string &condition, bool result) |
void | mismatchingBitAndError (const Token *tok1, const MathLib::bigint num1, const Token *tok2, const MathLib::bigint num2) |
void | badBitmaskCheckError (const Token *tok, bool isNoOp=false) |
void | comparisonError (const Token *tok, const std::string &bitop, MathLib::bigint value1, const std::string &op, MathLib::bigint value2, bool result) |
void | duplicateConditionError (const Token *tok1, const Token *tok2, ErrorPath errorPath) |
void | overlappingElseIfConditionError (const Token *tok, nonneg int line1) |
void | oppositeElseIfConditionError (const Token *ifCond, const Token *elseIfCond, ErrorPath errorPath) |
void | oppositeInnerConditionError (const Token *tok1, const Token *tok2, ErrorPath errorPath) |
void | identicalInnerConditionError (const Token *tok1, const Token *tok2, ErrorPath errorPath) |
void | identicalConditionAfterEarlyExitError (const Token *cond1, const Token *cond2, ErrorPath errorPath) |
void | incorrectLogicOperatorError (const Token *tok, const std::string &condition, bool always, bool inconclusive, ErrorPath errors) |
void | redundantConditionError (const Token *tok, const std::string &text, bool inconclusive) |
void | moduloAlwaysTrueFalseError (const Token *tok, const std::string &maxVal) |
void | clarifyConditionError (const Token *tok, bool assign, bool boolop) |
void | alwaysTrueFalseError (const Token *tok, const Token *condition, const ValueFlow::Value *value) |
void | invalidTestForOverflow (const Token *tok, const ValueType *valueType, const std::string &replace) |
void | pointerAdditionResultNotNullError (const Token *tok, const Token *calc) |
void | duplicateConditionalAssignError (const Token *condTok, const Token *assignTok, bool isRedundant=false) |
void | assignmentInCondition (const Token *eq) |
void | checkCompareValueOutOfTypeRange () |
void | compareValueOutOfTypeRangeError (const Token *comparison, const std::string &type, long long value, bool result) |
void | getErrorMessages (ErrorLogger *errorLogger, const Settings *settings) const override |
get error messages More... | |
std::string | classInfo () const override |
get information about this class, used to generate documentation More... | |
Static Private Member Functions | |
static std::string | myName () |
Private Attributes | |
std::set< const Token * > | mCondDiags |
Additional Inherited Members | |
Static Public Member Functions inherited from Check | |
static std::list< Check * > & | instances () |
List of registered check classes. More... | |
static void | writeToErrorList (const ErrorMessage &errmsg) |
Write given error to stdout in xml format. More... | |
Protected Member Functions inherited from Check | |
Check (std::string aname, const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) | |
This constructor is used when running checks. More... | |
void | reportError (const Token *tok, const Severity severity, const std::string &id, const std::string &msg) |
report an error More... | |
void | reportError (const Token *tok, const Severity severity, const std::string &id, const std::string &msg, const CWE &cwe, Certainty certainty) |
report an error More... | |
void | reportError (const std::list< const Token * > &callstack, Severity severity, const std::string &id, const std::string &msg) |
report an error More... | |
void | reportError (const std::list< const Token * > &callstack, Severity severity, const std::string &id, const std::string &msg, const CWE &cwe, Certainty certainty) |
report an error More... | |
void | reportError (const ErrorPath &errorPath, Severity severity, const char id[], const std::string &msg, const CWE &cwe, Certainty certainty) |
void | logChecker (const char id[]) |
log checker More... | |
ErrorPath | getErrorPath (const Token *errtok, const ValueFlow::Value *value, std::string bug) const |
bool | wrongData (const Token *tok, const char *str) |
Use WRONG_DATA in checkers when you check for wrong data. More... | |
Static Protected Member Functions inherited from Check | |
static std::string | getMessageId (const ValueFlow::Value &value, const char id[]) |
Protected Attributes inherited from Check | |
const Tokenizer *const | mTokenizer {} |
const Settings *const | mSettings {} |
ErrorLogger *const | mErrorLogger {} |
Check for condition mismatches.
Definition at line 50 of file checkcondition.h.
|
inline |
This constructor is used when registering the CheckAssignIf.
Definition at line 53 of file checkcondition.h.
|
inlineprivate |
This constructor is used when running checks.
Definition at line 57 of file checkcondition.h.
|
private |
Condition is always true/false.
Definition at line 1483 of file checkcondition.cpp.
References alwaysTrueFalseError(), Token::astOperand1(), Token::astParent(), Scope::bodyEnd, Scope::bodyStart, CheckOther::comparisonNonZeroExpressionLessThanZero(), diag(), Function::functionScope, SymbolDatabase::functionScopes, Tokenizer::getSymbolDatabase(), Token::isArithmeticalOp(), Token::isComparisonOp(), Token::isConstexpr(), isConstVarExpression(), SimpleEnableGroup< T >::isEnabled(), Token::isExpandedMacro(), Token::isNumber(), Settings::isPremiumEnabled(), isSameExpression(), isUsedAsBool(), isWithoutSideEffects(), Check::logChecker(), Token::Match(), Check::mSettings, Check::mTokenizer, Token::next(), none, op1_and_op2, precedes(), Token::previous(), Settings::severity, Token::simpleMatch(), Token::str(), style, CheckOther::testIfNonZeroExpressionIsPositive(), Token::values(), and visitAstNodes().
Referenced by runChecks().
|
private |
Definition at line 1630 of file checkcondition.cpp.
References bool_to_string(), CWE570, CWE571, Token::expressionString(), Check::getErrorPath(), ValueFlow::Value::intvalue, ValueFlow::Value::isImpossible(), normal, Check::reportError(), Token::simpleMatch(), and style.
Referenced by alwaysTrueFalse(), and getErrorMessages().
|
private |
mismatching assignment / comparison
Definition at line 88 of file checkcondition.cpp.
References assignIfParseScope(), Variable::declarationId(), Token::findsimplematch(), SimpleEnableGroup< T >::isEnabled(), Variable::isLocal(), Settings::isPremiumEnabled(), Check::logChecker(), Token::Match(), Check::mSettings, Check::mTokenizer, Token::next(), Token::previous(), Settings::severity, Token::str(), Token::strAt(), style, MathLib::toBigNumber(), Token::tokAt(), and Tokenizer::tokens().
Referenced by runChecks().
|
private |
Definition at line 239 of file checkcondition.cpp.
References bool_to_string(), CWE398, diag(), normal, Check::reportError(), style, and Token::tokAt().
Referenced by assignIfParseScope(), and getErrorMessages().
|
private |
parse scopes recursively
Definition at line 161 of file checkcondition.cpp.
References assignIfError(), isParameterChanged(), isVariableChanged(), Token::link(), Token::linkAt(), Token::Match(), mismatchingBitAndError(), Check::mSettings, Token::next(), Token::simpleMatch(), Token::str(), Token::strAt(), MathLib::toBigNumber(), and Token::tokAt().
Referenced by assignIf().
|
private |
Definition at line 1907 of file checkcondition.cpp.
References CWE571, Token::expressionString(), normal, Check::reportError(), and style.
Referenced by checkAssignmentInCondition(), and getErrorMessages().
|
private |
Definition at line 347 of file checkcondition.cpp.
References CWE571, normal, Check::reportError(), style, and warning.
Referenced by checkBadBitmaskCheck(), and getErrorMessages().
|
private |
Assignment in condition.
Definition at line 1873 of file checkcondition.cpp.
References assignmentInCondition(), Scope::bodyEnd, Scope::bodyStart, SymbolDatabase::functionScopes, Tokenizer::getSymbolDatabase(), SimpleEnableGroup< T >::isEnabled(), Settings::isPremiumEnabled(), Check::logChecker(), Token::Match(), Check::mSettings, Check::mTokenizer, Token::next(), Settings::severity, Token::simpleMatch(), and style.
Referenced by runChecks().
|
private |
check bitmask using | instead of &
Definition at line 307 of file checkcondition.cpp.
References Token::astOperand1(), Token::astOperand2(), Token::astParent(), badBitmaskCheckError(), Tokenizer::hasIfdef(), inBooleanFunction(), SimpleEnableGroup< T >::isEnabled(), isOperandExpanded(), Settings::isPremiumEnabled(), isTrue(), Check::logChecker(), Token::Match(), Check::mSettings, Check::mTokenizer, Token::next(), Settings::severity, Token::str(), style, and Tokenizer::tokens().
Referenced by runChecks().
|
private |
Definition at line 1920 of file checkcondition.cpp.
References Token::astOperand1(), Token::astSibling(), Scope::bodyEnd, Scope::bodyStart, Platform::char_bit, compareValueOutOfTypeRangeError(), error, SymbolDatabase::functionScopes, Token::getKnownIntValue(), Tokenizer::getSymbolDatabase(), Token::hasKnownIntValue(), Platform::int_bit, SimpleEnableGroup< T >::isEnabled(), Settings::isPremiumEnabled(), ValueType::isTypeEqual(), Check::logChecker(), Platform::long_bit, Platform::long_long_bit, Check::mSettings, Check::mTokenizer, Token::next(), Settings::platform, ValueType::pointer, Settings::severity, Platform::short_bit, ValueType::sign, ValueType::str(), style, Platform::type, ValueType::type, and Token::valueType().
Referenced by runChecks().
|
private |
Definition at line 1794 of file checkcondition.cpp.
References Token::astOperand1(), Token::astOperand2(), Token::astTop(), Scope::bodyEnd, Scope::bodyStart, duplicateConditionalAssignError(), SymbolDatabase::functionScopes, Tokenizer::getSymbolDatabase(), SimpleEnableGroup< T >::isEnabled(), Settings::isPremiumEnabled(), isSameExpression(), Token::link(), Check::logChecker(), Token::Match(), Check::mSettings, Check::mTokenizer, Token::next(), nextAfterAstRightmostLeaf(), ValueType::pointer, Settings::severity, Token::simpleMatch(), Token::str(), style, ValueType::type, Token::variable(), and Token::varId().
Referenced by runChecks().
|
private |
Check for testing for mutual exclusion over ||
Definition at line 1124 of file checkcondition.cpp.
References astIsFloat(), Token::astOperand1(), Token::astOperand2(), Scope::bodyEnd, Scope::bodyStart, Settings::certainty, checkFloatRelation(), checkIntRelation(), conditionString(), Token::expressionString(), SymbolDatabase::functionScopes, Tokenizer::getSymbolDatabase(), inconclusive, incorrectLogicOperatorError(), SimpleEnableGroup< T >::isEnabled(), MathLib::isFloat(), isIfConstexpr(), isOppositeCond(), Settings::isPremiumEnabled(), isSameExpression(), Check::logChecker(), Token::Match(), Check::mSettings, Check::mTokenizer, Token::next(), op1, op2, parseComparison(), redundantConditionError(), Settings::severity, Token::str(), style, sufficientCondition(), MathLib::toBigNumber(), MathLib::toDoubleNumber(), ValueType::type, ValueType::UNKNOWN_TYPE, Token::valueType(), and warning.
Referenced by runChecks().
|
private |
Check for invalid test for overflow 'x+100 < x'
Definition at line 1644 of file checkcondition.cpp.
References Token::astOperand1(), Token::astSibling(), bool_to_string(), Token::getKnownIntValue(), invalidTestForOverflow(), SimpleEnableGroup< T >::isEnabled(), ValueType::isIntegral(), Token::isNumber(), isSameExpression(), Check::logChecker(), Token::Match(), Check::mSettings, Check::mTokenizer, Token::next(), Settings::severity, ValueType::sign, Token::str(), Tokenizer::tokens(), Token::valueType(), Token::varId(), and warning.
Referenced by runChecks().
|
private |
Check for suspicious usage of modulo (e.g.
"if(var % 4 == 4)")
Definition at line 1363 of file checkcondition.cpp.
References Token::astOperand1(), Token::astOperand2(), Scope::bodyEnd, Scope::bodyStart, SymbolDatabase::functionScopes, Tokenizer::getSymbolDatabase(), SimpleEnableGroup< T >::isEnabled(), MathLib::isLessEqual(), Check::logChecker(), Token::Match(), moduloAlwaysTrueFalseError(), Check::mSettings, Check::mTokenizer, Token::next(), Settings::severity, Token::simpleMatch(), Token::str(), and warning.
Referenced by runChecks().
|
private |
Check if pointer addition result is NULL '(ptr + 1) == NULL'.
Definition at line 1747 of file checkcondition.cpp.
References Token::astOperand1(), Token::astOperand2(), Scope::bodyEnd, Scope::bodyStart, SymbolDatabase::functionScopes, Tokenizer::getSymbolDatabase(), Token::getValue(), Token::hasKnownIntValue(), SimpleEnableGroup< T >::isEnabled(), Check::logChecker(), Check::mSettings, Check::mTokenizer, Token::next(), ValueType::pointer, pointerAdditionResultNotNullError(), Settings::severity, Token::valueType(), and warning.
Referenced by runChecks().
|
private |
Suspicious condition (assignment+comparison)
Definition at line 1419 of file checkcondition.cpp.
References Scope::bodyEnd, Scope::bodyStart, ValueType::BOOL, clarifyConditionError(), countPar(), Token::eBitOp, SymbolDatabase::functionScopes, Tokenizer::getSymbolDatabase(), SimpleEnableGroup< T >::isEnabled(), Settings::isPremiumEnabled(), Check::logChecker(), Token::Match(), Check::mSettings, Check::mTokenizer, Token::next(), Settings::severity, Token::simpleMatch(), style, Token::tokAt(), and ValueType::type.
Referenced by runChecks().
|
private |
Definition at line 1460 of file checkcondition.cpp.
References CWE398, normal, Check::reportError(), and style.
Referenced by clarifyCondition(), and getErrorMessages().
|
inlineoverrideprivatevirtual |
get information about this class, used to generate documentation
Implements Check.
Definition at line 203 of file checkcondition.h.
|
private |
Definition at line 2039 of file checkcondition.cpp.
References bool_to_string(), comparison(), CWE398, normal, Check::reportError(), and style.
Referenced by checkCompareValueOutOfTypeRange(), and getErrorMessages().
|
private |
mismatching lhs and rhs in comparison
Definition at line 355 of file checkcondition.cpp.
References Token::astOperand1(), Token::astOperand2(), comparisonError(), getnumchildren(), SimpleEnableGroup< T >::isEnabled(), Token::isNumber(), Settings::isPremiumEnabled(), Check::logChecker(), Token::Match(), Check::mSettings, Check::mTokenizer, Token::next(), Settings::severity, Token::str(), style, MathLib::toBigNumber(), and Tokenizer::tokens().
Referenced by compareValueOutOfTypeRangeError(), and runChecks().
|
private |
Definition at line 418 of file checkcondition.cpp.
References bool_to_string(), CWE398, normal, Check::reportError(), and style.
Referenced by comparison(), and getErrorMessages().
|
private |
Definition at line 58 of file checkcondition.cpp.
References Token::astParent(), Token::Match(), and mCondDiags.
Referenced by alwaysTrueFalse(), assignIfError(), duplicateConditionError(), identicalConditionAfterEarlyExitError(), identicalInnerConditionError(), incorrectLogicOperatorError(), moduloAlwaysTrueFalseError(), oppositeElseIfConditionError(), oppositeInnerConditionError(), overlappingElseIfConditionError(), and redundantConditionError().
|
private |
Definition at line 473 of file checkcondition.cpp.
References Token::astOperand2(), Scope::classDef, duplicateConditionError(), Scope::eIf, findExpressionChanged(), Tokenizer::getSymbolDatabase(), Token::hasKnownIntValue(), SimpleEnableGroup< T >::isEnabled(), Settings::isPremiumEnabled(), isSameExpression(), Token::link(), Token::linkAt(), Check::logChecker(), Check::mSettings, Check::mTokenizer, Token::next(), SymbolDatabase::scopeList, Settings::severity, Token::simpleMatch(), style, Token::tokAt(), and Scope::type.
Referenced by runChecks().
|
private |
Definition at line 1851 of file checkcondition.cpp.
References CWE398, Token::expressionString(), normal, Check::reportError(), Token::str(), and style.
Referenced by checkDuplicateConditionalAssign(), and getErrorMessages().
|
private |
Definition at line 512 of file checkcondition.cpp.
References CWE398, diag(), normal, Check::reportError(), and style.
Referenced by duplicateCondition(), and getErrorMessages().
|
inlineoverrideprivatevirtual |
get error messages
Implements Check.
Definition at line 175 of file checkcondition.h.
References alwaysTrueFalseError(), assignIfError(), assignmentInCondition(), badBitmaskCheckError(), clarifyConditionError(), compareValueOutOfTypeRangeError(), comparisonError(), duplicateConditionalAssignError(), duplicateConditionError(), emptyString, identicalConditionAfterEarlyExitError(), identicalInnerConditionError(), incorrectLogicOperatorError(), invalidTestForOverflow(), mismatchingBitAndError(), moduloAlwaysTrueFalseError(), oppositeInnerConditionError(), overlappingElseIfConditionError(), pointerAdditionResultNotNullError(), and redundantConditionError().
|
private |
Definition at line 874 of file checkcondition.cpp.
References Token::astParent(), CWE398, diag(), Token::expressionString(), normal, Check::reportError(), Token::simpleMatch(), ValueType::type, Token::valueType(), and warning.
Referenced by getErrorMessages().
|
private |
Definition at line 859 of file checkcondition.cpp.
References CWE398, diag(), Token::expressionString(), innerSmtString(), normal, Check::reportError(), and warning.
Referenced by getErrorMessages(), and multiCondition2().
|
private |
Definition at line 1336 of file checkcondition.cpp.
References CWE570, CWE571, diag(), inconclusive, normal, Check::reportError(), and warning.
Referenced by checkIncorrectLogicOperator(), and getErrorMessages().
|
private |
Definition at line 1732 of file checkcondition.cpp.
References Token::expressionString(), normal, ValueType::pointer, replace(), Check::reportError(), uncheckedErrorConditionCWE, and warning.
Referenced by checkInvalidTestForOverflow(), and getErrorMessages().
|
private |
Definition at line 79 of file checkcondition.cpp.
References Token::Match(), Check::mTokenizer, Token::next(), and Tokenizer::tokens().
Referenced by multiCondition2().
|
private |
Definition at line 432 of file checkcondition.cpp.
References Token::astOperand1(), Token::astOperand2(), MathLib::isNegative(), Token::isNumber(), isSameExpression(), Token::Match(), Check::mSettings, Token::str(), and MathLib::toBigNumber().
Referenced by multiCondition().
|
private |
Definition at line 251 of file checkcondition.cpp.
References CWE398, normal, Check::reportError(), and style.
Referenced by assignIfParseScope(), and getErrorMessages().
|
private |
Definition at line 1393 of file checkcondition.cpp.
References CWE398, diag(), normal, Check::reportError(), and warning.
Referenced by checkModuloAlwaysTrueFalse(), and getErrorMessages().
|
private |
match 'if' and 'else if' conditions
Definition at line 524 of file checkcondition.cpp.
References Token::astOperand2(), Scope::classDef, Scope::eIf, findExpressionChanged(), Tokenizer::getSymbolDatabase(), SimpleEnableGroup< T >::isEnabled(), isOppositeCond(), isOverlappingCond(), Settings::isPremiumEnabled(), Token::linenr(), Token::link(), Token::linkAt(), Check::logChecker(), Check::mSettings, Check::mTokenizer, Token::next(), oppositeElseIfConditionError(), overlappingElseIfConditionError(), SymbolDatabase::scopeList, Settings::severity, Token::simpleMatch(), style, Token::tokAt(), and Scope::type.
Referenced by runChecks().
|
private |
multiconditions #2
Definition at line 614 of file checkcondition.cpp.
References Token::astOperand1(), Token::astOperand2(), Token::astParent(), Scope::bodyEnd, Scope::bodyStart, Scope::classDef, done, Scope::eFor, Scope::eIf, Scope::eWhile, findExpressionChanged(), Token::findsimplematch(), Token::function(), Tokenizer::getSymbolDatabase(), Tokenizer::hasIfdef(), Token::hasKnownIntValue(), identicalInnerConditionError(), isAliased(), Variable::isArgument(), Token::isCpp(), SimpleEnableGroup< T >::isEnabled(), isExpressionChangedAt(), ValueType::isIntegral(), isLikelyStreamRead(), Variable::isLocal(), Token::isName(), isNonConstFunctionCall(), isParameterChanged(), Variable::isPointer(), Settings::isPremiumEnabled(), Variable::isReference(), isSameExpression(), Token::isUnaryOp(), isVariablesChanged(), Settings::library, Token::link(), Token::linkAt(), Check::logChecker(), Token::Match(), Check::mSettings, Check::mTokenizer, Token::next(), none, op1_and_op2, Token::previous(), Token::scope(), SymbolDatabase::scopeList, Settings::severity, Token::simpleMatch(), Token::str(), Token::tokAt(), Scope::type, Token::valueType(), Token::variable(), Token::varId(), visitAstNodes(), and warning.
Referenced by runChecks().
|
inlinestaticprivate |
Definition at line 199 of file checkcondition.h.
|
private |
Definition at line 578 of file checkcondition.cpp.
References CWE398, diag(), Token::linenr(), normal, Check::reportError(), and style.
Referenced by multiCondition().
|
private |
Definition at line 844 of file checkcondition.cpp.
References CWE398, diag(), Token::expressionString(), innerSmtString(), normal, Check::reportError(), and warning.
Referenced by getErrorMessages().
|
private |
Definition at line 567 of file checkcondition.cpp.
References CWE398, diag(), normal, Check::reportError(), and style.
Referenced by getErrorMessages(), and multiCondition().
|
private |
Definition at line 1788 of file checkcondition.cpp.
References Token::expressionString(), Check::reportError(), and warning.
Referenced by checkPointerAdditionResultNotNull(), and getErrorMessages().
|
private |
Definition at line 1353 of file checkcondition.cpp.
References CWE398, diag(), inconclusive, normal, Check::reportError(), and style.
Referenced by checkIncorrectLogicOperator(), and getErrorMessages().
|
inlineoverrideprivatevirtual |
run checks, the token list is not simplified
Implements Check.
Definition at line 60 of file checkcondition.h.
References alwaysTrueFalse(), assignIf(), checkAssignmentInCondition(), checkBadBitmaskCheck(), checkCompareValueOutOfTypeRange(), checkDuplicateConditionalAssign(), checkIncorrectLogicOperator(), checkInvalidTestForOverflow(), checkModuloAlwaysTrueFalse(), checkPointerAdditionResultNotNull(), clarifyCondition(), comparison(), duplicateCondition(), Tokenizer::getSettings(), multiCondition(), and multiCondition2().
|
private |
Definition at line 133 of file checkcondition.h.
Referenced by diag().