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

Function isIfConstexpr

lib/checkcondition.cpp:1154–1157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1152}
1153
1154static bool isIfConstexpr(const Token* tok) {
1155 const Token* const top = tok->astTop();
1156 return Token::simpleMatch(top->astOperand1(), "if") && top->astOperand1()->isConstexpr();
1157}
1158
1159void CheckConditionImpl::checkIncorrectLogicOperator()
1160{

Callers 1

Calls 3

astTopMethod · 0.80
astOperand1Method · 0.80
simpleMatchFunction · 0.70

Tested by

no test coverage detected