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

Method declEndToken

lib/symboldatabase.cpp:2526–2537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2524}
2525
2526const Token * Variable::declEndToken() const
2527{
2528 Token const * declEnd = typeStartToken();
2529 if (declEnd->tokAt(-1) && Token::simpleMatch(declEnd->tokAt(-2), "for ("))
2530 declEnd = nameToken();
2531 while (declEnd && !Token::Match(declEnd, "[;:,)={]")) {
2532 if (declEnd->link() && Token::Match(declEnd,"(|[|<"))
2533 declEnd = declEnd->link();
2534 declEnd = declEnd->next();
2535 }
2536 return declEnd;
2537}
2538
2539void Variable::evaluate(const Settings& settings)
2540{

Callers 11

getLifetimeTokensFunction · 0.80
byDerefCopyMethod · 0.80
bifurcateFunction · 0.80
typeDeclMethod · 0.80
checkPassByReferenceMethod · 0.80
invalidFunctionUsageMethod · 0.80
isEscapedReferenceFunction · 0.80
isVariableDeclFunction · 0.80
isVariableChangedFunction · 0.80

Calls 5

typeStartTokenFunction · 0.85
nameTokenFunction · 0.85
nextMethod · 0.80
simpleMatchFunction · 0.70
tokAtMethod · 0.45

Tested by

no test coverage detected