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

Function astIsFloat

lib/astutils.cpp:222–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222bool astIsFloat(const Token *tok, bool unknown)
223{
224 const ValueType *vt = tok ? tok->valueType() : nullptr;
225 if (!vt)
226 return unknown;
227 return vt->type >= ValueType::Type::FLOAT && vt->pointer == 0U;
228}
229
230bool astIsBool(const Token *tok)
231{

Callers 9

setTokenValueFunction · 0.70
parseCompareEachIntFunction · 0.70
valueFlowSymbolicInferFunction · 0.70
afterConditionMethod · 0.70
memsetInvalid2ndParamMethod · 0.70
checkIteratorPairMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected