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

Method astOperand2

lib/token.cpp:1453–1463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1451}
1452
1453void Token::astOperand2(Token *tok)
1454{
1455 if (mImpl->mAstOperand2)
1456 mImpl->mAstOperand2->astParent(nullptr);
1457 // goto parent operator
1458 if (tok) {
1459 tok = tok->astTop();
1460 tok->astParent(this);
1461 }
1462 mImpl->mAstOperand2 = tok;
1463}
1464
1465static const Token* goToLeftParenthesis(const Token* start, const Token* end)
1466{

Callers 15

isCalculationMethod · 0.95
hasFunctionCallFunction · 0.80
hasGccCompoundStatementFunction · 0.80
checkRecursiveMethod · 0.80
isSimpleIndexExpressionFunction · 0.80
fwdanalysis.cppFile · 0.80
hasOperandMethod · 0.80
possiblyAliasedMethod · 0.80
isPointerDeRefMethod · 0.80
isNullablePointerFunction · 0.80
arithmeticMethod · 0.80

Calls 2

astParentMethod · 0.80
astTopMethod · 0.80

Tested by 4

testAstMethod · 0.64