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

Function isNonInvertibleOperation

lib/vf_settokenvalue.cpp:159–162  ·  view source on GitHub ↗

does the operation cause a loss of information?

Source from the content-addressed store, hash-verified

157
158 // does the operation cause a loss of information?
159 static bool isNonInvertibleOperation(const Token* tok)
160 {
161 return !Token::Match(tok, "+|-");
162 }
163
164 static bool isComputableValue(const Token* parent, const Value& value)
165 {

Callers 2

isComputableValueFunction · 0.85
setTokenValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected