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

Function getIncompleteNameID

lib/symboldatabase.cpp:1605–1611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1603}
1604
1605static std::string getIncompleteNameID(const Token* tok)
1606{
1607 std::string result = tok->str() + "@";
1608 while (Token::Match(tok->astParent(), ".|::"))
1609 tok = tok->astParent();
1610 return result + tok->expressionString();
1611}
1612
1613namespace {
1614 int getExprIdForOperand(const Token* tok) {

Callers 1

Calls 3

astParentMethod · 0.80
strMethod · 0.45
expressionStringMethod · 0.45

Tested by

no test coverage detected