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

Function isCastToInteger

lib/checkother.cpp:1862–1865  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1860}
1861
1862static bool isCastToInteger(const Token* tok)
1863{
1864 return tok && tok->isCast() && tok->valueType() && tok->valueType()->isIntegral() && tok->valueType()->pointer == 0;
1865}
1866
1867static const Function* getEnclosingFunction(const Variable* var)
1868{

Callers 1

checkConstPointerMethod · 0.85

Calls 2

isCastMethod · 0.80
isIntegralMethod · 0.80

Tested by

no test coverage detected