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

Function astIsIntegral

lib/astutils.cpp:209–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209bool astIsIntegral(const Token *tok, bool unknown)
210{
211 const ValueType *vt = tok ? tok->valueType() : nullptr;
212 if (!vt)
213 return unknown;
214 return vt->isIntegral() && vt->pointer == 0U;
215}
216
217bool astIsUnsigned(const Token* tok)
218{

Callers 13

setTokenValueFunction · 0.85
valueFlowSameExpressionsFunction · 0.85
isIntegralOrPointerFunction · 0.85
getInitListSizeFunction · 0.85
isModifiedFunction · 0.85
isConstStatementFunction · 0.85
checkKnownArgumentMethod · 0.85
checkIteratorPairMethod · 0.85

Calls 1

isIntegralMethod · 0.80

Tested by

no test coverage detected