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

Function isUnknownType

lib/symboldatabase.cpp:3292–3303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3290}
3291
3292static bool isUnknownType(const Token* start, const Token* end)
3293{
3294 while (Token::Match(start, "const|volatile"))
3295 start = start->next();
3296 start = skipScopeIdentifiers(start);
3297 if (start->tokAt(1) == end && !start->type() && !start->isStandardType())
3298 return true;
3299 // TODO: Try to deduce the type of the expression
3300 if (Token::Match(start, "decltype|typeof"))
3301 return true;
3302 return false;
3303}
3304
3305static const Token* getEnableIfReturnType(const Token* start)
3306{

Callers 1

checkReturnsFunction · 0.85

Calls 5

skipScopeIdentifiersFunction · 0.85
nextMethod · 0.80
typeMethod · 0.80
tokAtMethod · 0.45
isStandardTypeMethod · 0.45

Tested by

no test coverage detected