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

Method astOperand1

lib/token.cpp:1441–1451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1439}
1440
1441void Token::astOperand1(Token *tok)
1442{
1443 if (mImpl->mAstOperand1)
1444 mImpl->mAstOperand1->astParent(nullptr);
1445 // goto parent operator
1446 if (tok) {
1447 tok = tok->astTop();
1448 tok->astParent(this);
1449 }
1450 mImpl->mAstOperand1 = tok;
1451}
1452
1453void Token::astOperand2(Token *tok)
1454{

Callers 15

isUnchangedFunction · 0.80
hasFunctionCallFunction · 0.80
hasGccCompoundStatementFunction · 0.80
checkRecursiveMethod · 0.80
isSimpleIndexExpressionFunction · 0.80
fwdanalysis.cppFile · 0.80
hasOperandMethod · 0.80
unusedValueMethod · 0.80
possiblyAliasedMethod · 0.80
isEscapedAliasMethod · 0.80
isPointerDeRefMethod · 0.80
arithmeticMethod · 0.80

Calls 2

astParentMethod · 0.80
astTopMethod · 0.80

Tested by 10

testAstMethod · 0.64
functionMethod · 0.64
function_match_varMethod · 0.64
function_arg_variadicMethod · 0.64
function_arg_validMethod · 0.64
function_arg_minsizeMethod · 0.64