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

Function matchMemberVarName

lib/tokenize.cpp:5196–5204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5194}
5195
5196static Token * matchMemberVarName(const Member &var, const std::list<ScopeInfo2> &scopeInfo)
5197{
5198 Token *tok = matchMemberName(var, scopeInfo);
5199 if (Token::Match(tok, "%name%")) {
5200 if (!tok->next() || tok->strAt(1) != "(" || (tok->tokAt(2) && tok->tokAt(2)->isLiteral()))
5201 return tok;
5202 }
5203 return nullptr;
5204}
5205
5206static Token * matchMemberFunctionName(const Member &func, const std::list<ScopeInfo2> &scopeInfo)
5207{

Callers 1

setVarIdPass2Method · 0.85

Calls 3

matchMemberNameFunction · 0.85
nextMethod · 0.80
tokAtMethod · 0.45

Tested by

no test coverage detected