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

Function isVarDecl

lib/checkunusedvar.cpp:655–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

653}
654
655static bool isVarDecl(const Token *tok)
656{
657 return tok && tok->variable() && tok->variable()->nameToken() == tok;
658}
659
660// Skip [ .. ]
661static const Token * skipBrackets(const Token *tok)

Calls 2

variableMethod · 0.80
nameTokenMethod · 0.45

Tested by

no test coverage detected