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

Function astIsPrimitive

lib/astutils.cpp:201–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201bool astIsPrimitive(const Token* tok)
202{
203 const ValueType* vt = tok ? tok->valueType() : nullptr;
204 if (!vt)
205 return false;
206 return vt->isPrimitive();
207}
208
209bool astIsIntegral(const Token *tok, bool unknown)
210{

Callers 3

getCastTypeStartTokenFunction · 0.85
isGlobalModifiedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected