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

Function astIsRangeBasedForDecl

lib/astutils.cpp:337–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337bool astIsRangeBasedForDecl(const Token* tok)
338{
339 return Token::simpleMatch(tok->astParent(), ":") && Token::simpleMatch(tok->astParent()->astParent(), "(");
340}
341
342std::string astCanonicalType(const Token *expr, bool pointedToType)
343{

Callers 6

typeDeclMethod · 0.85
checkPassByReferenceMethod · 0.85
checkConstVariableMethod · 0.85
checkConstPointerMethod · 0.85
initializeVarListMethod · 0.85
followVariableExpressionFunction · 0.85

Calls 2

astParentMethod · 0.80
simpleMatchFunction · 0.70

Tested by

no test coverage detected