MCPcopy Create free account
hub / github.com/Tencent/TscanCode / skipValueInConditionalExpression

Function skipValueInConditionalExpression

trunk/lib/valueflow.cpp:256–286  ·  view source on GitHub ↗

* Should value be skipped because it's hidden inside && || or ?: expression. * Example: ((x!=NULL) && (*x == 123)) * If 'valuetok' points at the x in '(*x == 123)'. Then the '&&' will be returned. * @param valuetok original variable token * @return NULL=>don't skip, non-NULL=>The operator token that cause the skip. For instance the '&&'. * */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

valueFlowReverseFunction · 0.85
valueFlowForwardFunction · 0.85

Calls 5

astOperand1Method · 0.80
emptyMethod · 0.80
variableMethod · 0.80
astOperand2Method · 0.80
strMethod · 0.45

Tested by

no test coverage detected