Home
last modified time | relevance | path

Searched refs:isArithmeticalOp (Results 1 – 25 of 30) sorted by relevance

12

/dports/devel/cppcheck/cppcheck-2.6.3/lib/
H A Dchecktype.cpp161 if (!tok->isArithmeticalOp()) in checkIntegerOverflow()
232 if (!tok->isArithmeticalOp() || Token::Match(tok,"+|-")) in checkSignConversion()
H A Dcheckstl.cpp1353 if (tok->isArithmeticalOp()) // result is used in some calculation in if_findCompare()
1626 …if ((tok->previous() && !tok->previous()->isArithmeticalOp() && Token::Match(end, "==|<=|!=|> 0"))… in size()
1627 …(end->next() && !end->next()->isArithmeticalOp() && Token::Match(tok->tokAt(-2), "0 ==|>=|!=|<")))… in size()
1635 …->previous() && !tok->previous()->isArithmeticalOp() && Token::Match(end, ">=|< 1") && !end->tokAt… in size()
1636 …nd->next() && !end->next()->isArithmeticalOp() && Token::Match(tok->tokAt(-2), "1 <=|>") && !tok->… in size()
H A Dtoken.h413 return (isArithmeticalOp() || in isConstOp()
422 bool isArithmeticalOp() const { in isArithmeticalOp() function
H A Dbughuntingchecks.cpp227 …if (!tok->isArithmeticalOp() || !tok->valueType() || !tok->valueType()->isIntegral() || tok->value… in integerOverflow()
H A Dcheckother.cpp160 … if (!tok->astOperand1()->isArithmeticalOp() && tok->astOperand1()->tokType() != Token::eBitOp) in clarifyCalculation()
2150 tok->astOperand2()->isArithmeticalOp() || in checkDuplicateExpression()
2308 if (expr1 != expr2 && (!opTok || !opTok->isArithmeticalOp())) { in duplicateExpressionError()
H A Dcheckcondition.cpp1487 if (tok2->isComparisonOp() || tok2->isArithmeticalOp()) { in alwaysTrueFalse()
H A Dtoken.cpp394 if (tok->isArithmeticalOp() && tok->str() == "%") in multiComparePercent()
H A Dtokenize.cpp5481 if (tok->isArithmeticalOp()) in dump()
6210 if (tok2->previous()->isArithmeticalOp() && in removeRedundantFor()
6212 (tok2->next()->isArithmeticalOp() || tok2->next()->str() == ";")) { in removeRedundantFor()
8942 while (tok2 && (Token::Match(tok2,"%bool%|%num%|%name%") || tok2->isArithmeticalOp())) in simplifyRedundantParentheses()
H A Dastutils.cpp2094 while (parent && parent->isArithmeticalOp() && parent->isBinaryOp()) { in isVariableChanged()
/dports/devel/cppcheck-gui/cppcheck-2.6.3/lib/
H A Dchecktype.cpp161 if (!tok->isArithmeticalOp()) in checkIntegerOverflow()
232 if (!tok->isArithmeticalOp() || Token::Match(tok,"+|-")) in checkSignConversion()
H A Dcheckstl.cpp1353 if (tok->isArithmeticalOp()) // result is used in some calculation in if_findCompare()
1626 …if ((tok->previous() && !tok->previous()->isArithmeticalOp() && Token::Match(end, "==|<=|!=|> 0"))… in size()
1627 …(end->next() && !end->next()->isArithmeticalOp() && Token::Match(tok->tokAt(-2), "0 ==|>=|!=|<")))… in size()
1635 …->previous() && !tok->previous()->isArithmeticalOp() && Token::Match(end, ">=|< 1") && !end->tokAt… in size()
1636 …nd->next() && !end->next()->isArithmeticalOp() && Token::Match(tok->tokAt(-2), "1 <=|>") && !tok->… in size()
H A Dtoken.h413 return (isArithmeticalOp() || in isConstOp()
422 bool isArithmeticalOp() const { in isArithmeticalOp() function
H A Dbughuntingchecks.cpp227 …if (!tok->isArithmeticalOp() || !tok->valueType() || !tok->valueType()->isIntegral() || tok->value… in integerOverflow()
H A Dcheckother.cpp160 … if (!tok->astOperand1()->isArithmeticalOp() && tok->astOperand1()->tokType() != Token::eBitOp) in clarifyCalculation()
2150 tok->astOperand2()->isArithmeticalOp() || in checkDuplicateExpression()
2308 if (expr1 != expr2 && (!opTok || !opTok->isArithmeticalOp())) { in duplicateExpressionError()
H A Dcheckcondition.cpp1487 if (tok2->isComparisonOp() || tok2->isArithmeticalOp()) { in alwaysTrueFalse()
H A Dtoken.cpp394 if (tok->isArithmeticalOp() && tok->str() == "%") in multiComparePercent()
H A Dtokenize.cpp5481 if (tok->isArithmeticalOp()) in dump()
6210 if (tok2->previous()->isArithmeticalOp() && in removeRedundantFor()
6212 (tok2->next()->isArithmeticalOp() || tok2->next()->str() == ";")) { in removeRedundantFor()
8942 while (tok2 && (Token::Match(tok2,"%bool%|%num%|%name%") || tok2->isArithmeticalOp())) in simplifyRedundantParentheses()
/dports/devel/cppcheck/cppcheck-2.6.3/test/
H A Dtesttoken.cpp85 TEST_CASE(isArithmeticalOp); in run()
802 void isArithmeticalOp() const { in isArithmeticalOp() function in TestToken
807 ASSERT_EQUALS(true, tok.isArithmeticalOp()); in isArithmeticalOp()
822 … ASSERT_EQUALS_MSG(false, tok.isArithmeticalOp(), "Failing arithmetical operator: " + *other_op); in isArithmeticalOp()
/dports/devel/cppcheck-gui/cppcheck-2.6.3/test/
H A Dtesttoken.cpp85 TEST_CASE(isArithmeticalOp); in run()
802 void isArithmeticalOp() const { in isArithmeticalOp() function in TestToken
807 ASSERT_EQUALS(true, tok.isArithmeticalOp()); in isArithmeticalOp()
822 … ASSERT_EQUALS_MSG(false, tok.isArithmeticalOp(), "Failing arithmetical operator: " + *other_op); in isArithmeticalOp()
/dports/devel/cppcheck/cppcheck-2.6.3/addons/
H A Dcppcheckdata.py258 isArithmeticalOp = False variable in Token
320 self.isArithmeticalOp = True
H A Dmisra.py632 if not expr.isArithmeticalOp:
720 if ((cond.isArithmeticalOp and cond.astOperand1 and cond.astOperand2) or
1020 if operator.isArithmeticalOp:
1033 if operator.isArithmeticalOp:
2289 if not token.isArithmeticalOp:
2294 if not parent.isArithmeticalOp:
/dports/devel/cppcheck-gui/cppcheck-2.6.3/addons/
H A Dcppcheckdata.py258 isArithmeticalOp = False variable in Token
320 self.isArithmeticalOp = True
H A Dmisra.py632 if not expr.isArithmeticalOp:
720 if ((cond.isArithmeticalOp and cond.astOperand1 and cond.astOperand2) or
1020 if operator.isArithmeticalOp:
1033 if operator.isArithmeticalOp:
2289 if not token.isArithmeticalOp:
2294 if not parent.isArithmeticalOp:
/dports/devel/cppcheck-gui/cppcheck-2.6.3/gui/test/data/benchmark/
H A Dsimple.cpp85 if (!cond->isArithmeticalOp()) in clarifyCalculation()
/dports/devel/cppcheck/cppcheck-2.6.3/gui/test/data/benchmark/
H A Dsimple.cpp85 if (!cond->isArithmeticalOp()) in clarifyCalculation()

12