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

Method assignIndexes

lib/token.cpp:2311–2317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2309}
2310
2311void Token::assignIndexes()
2312{
2313 // cppcheck-suppress shadowFunction - TODO: fix this
2314 int index = (mPrevious ? mPrevious->mImpl->mIndex : 0) + 1;
2315 for (Token *tok = this; tok; tok = tok->next())
2316 tok->mImpl->mIndex = index++;
2317}
2318
2319void Token::setValueType(ValueType *vt)
2320{

Callers 3

parseClangAstDumpMethod · 0.80
simplifyTokenList1Method · 0.80
testAstMethod · 0.80

Calls 1

nextMethod · 0.80

Tested by 1

testAstMethod · 0.64