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

Function astSibling

lib/token.h:1587–1596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1585 return mImpl->mAstParent;
1586 }
1587 Token * astSibling() {
1588 if (!astParent())
1589 return nullptr;
1590 if (this == astParent()->astOperand1())
1591 return astParent()->astOperand2();
1592 if (this == astParent()->astOperand2())
1593 return astParent()->astOperand1();
1594 return nullptr;
1595
1596 }
1597 const Token * astSibling() const {
1598 if (!astParent())
1599 return nullptr;

Callers

nothing calls this directly

Calls 3

astParentFunction · 0.85
astOperand1Method · 0.80
astOperand2Method · 0.80

Tested by

no test coverage detected