Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
655
static bool isVarDecl(const Token *tok)
656
{
657
return tok && tok->variable() && tok->variable()->nameToken() == tok;
658
}
659
660
// Skip [ .. ]
661
static const Token * skipBrackets(const Token *tok)
Callers
1
checkFunctionVariableUsage_iterateScopes
Method · 0.85
Calls
2
variable
Method · 0.80
nameToken
Method · 0.45
Tested by
no test coverage detected