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

Function isVoidCast

lib/astutils.cpp:433–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431}
432
433bool isVoidCast(const Token* tok)
434{
435 return Token::simpleMatch(tok, "(") && tok->isCast() && tok->valueType() &&
436 tok->valueType()->type == ValueType::Type::VOID && tok->valueType()->pointer == 0;
437}
438
439bool isTemporary(const Token* tok, const Library* library, bool unknown)
440{

Callers 3

isVariableUsageMethod · 0.85
valueFlowUninitMethod · 0.85
isCastToVoidFunction · 0.85

Calls 2

isCastMethod · 0.80
simpleMatchFunction · 0.70

Tested by

no test coverage detected