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

Method isNegatedBool

lib/valueflow.cpp:5103–5108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5101struct SymbolicConditionHandler : SimpleConditionHandler {
5102
5103 static bool isNegatedBool(const Token* tok)
5104 {
5105 if (!Token::simpleMatch(tok, "!"))
5106 return false;
5107 return (astIsBool(tok->astOperand1()));
5108 }
5109
5110 static const Token* skipNot(const Token* tok)
5111 {

Callers

nothing calls this directly

Calls 3

astIsBoolFunction · 0.85
astOperand1Method · 0.80
simpleMatchFunction · 0.70

Tested by

no test coverage detected