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

Method eraseTokens

lib/token.cpp:1213–1221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1211}
1212
1213void Token::eraseTokens(Token *begin, const Token *end)
1214{
1215 if (!begin || begin == end)
1216 return;
1217
1218 while (begin->next() && begin->next() != end) {
1219 begin->deleteNext();
1220 }
1221}
1222
1223void Token::createMutualLinks(Token *begin, Token *end)
1224{

Callers

nothing calls this directly

Calls 2

nextMethod · 0.80
deleteNextMethod · 0.80

Tested by

no test coverage detected