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

Method hasKnownValue

lib/token.cpp:2528–2531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2526}
2527
2528bool Token::hasKnownValue() const
2529{
2530 return mImpl->mValues && std::any_of(mImpl->mValues->begin(), mImpl->mValues->end(), std::mem_fn(&ValueFlow::Value::isKnown));
2531}
2532
2533bool Token::hasKnownValue(ValueFlow::Value::ValueType t) const
2534{

Callers 13

getDimensionsEtcFunction · 0.80
setTokenValueFunction · 0.80
valueFlowBitAndFunction · 0.80
valueFlowAfterAssignFunction · 0.80
valueFlowFunctionReturnFunction · 0.80
valueFlowContainerSizeFunction · 0.80
invalidFunctionUsageMethod · 0.80
getComparisonTokensFunction · 0.80
outOfBoundsMethod · 0.80
stlOutOfBoundsMethod · 0.80

Calls 3

isKnownMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected