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

Function isBinaryOp

lib/token.h:457–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455 return mTokType == eIncDecOp;
456 }
457 bool isBinaryOp() const {
458 return astOperand1() != nullptr && astOperand2() != nullptr;
459 }
460 bool isUnaryOp(const std::string &s) const {
461 return s == mStr && astOperand1() != nullptr && astOperand2() == nullptr;
462 }

Callers

nothing calls this directly

Calls 2

astOperand1Function · 0.85
astOperand2Function · 0.85

Tested by

no test coverage detected