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

Method astStringZ3

lib/token.cpp:1739–1746  ·  view source on GitHub ↗

cppcheck-suppress unusedFunction // used in test

Source from the content-addressed store, hash-verified

1737
1738// cppcheck-suppress unusedFunction // used in test
1739std::string Token::astStringZ3() const
1740{
1741 if (!astOperand1())
1742 return str();
1743 if (!astOperand2())
1744 return "(" + str() + " " + astOperand1()->astStringZ3() + ")";
1745 return "(" + str() + " " + astOperand1()->astStringZ3() + " " + astOperand2()->astStringZ3() + ")";
1746}
1747
1748void Token::printValueFlow(const std::vector<std::string>& files, bool xml, std::ostream &out) const
1749{

Callers 1

testAstMethod · 0.80

Calls 3

astOperand1Function · 0.85
strFunction · 0.85
astOperand2Function · 0.85

Tested by 1

testAstMethod · 0.64