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

Function isOperandExpanded

lib/checkcondition.cpp:300–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300static bool isOperandExpanded(const Token *tok)
301{
302 if (tok->isExpandedMacro() || tok->isEnumerator())
303 return true;
304 if (tok->astOperand1() && isOperandExpanded(tok->astOperand1()))
305 return true;
306 if (tok->astOperand2() && isOperandExpanded(tok->astOperand2()))
307 return true;
308 return false;
309}
310
311void CheckConditionImpl::checkBadBitmaskCheck()
312{

Callers 1

checkBadBitmaskCheckMethod · 0.85

Calls 2

astOperand1Method · 0.80
astOperand2Method · 0.80

Tested by

no test coverage detected