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

Method deleteToken

lib/templatesimplifier.cpp:618–624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

616}
617
618void TemplateSimplifier::deleteToken(Token *tok)
619{
620 if (tok->next())
621 tok->next()->deletePrevious();
622 else
623 tok->deleteThis();
624}
625
626static void invalidateForwardDecls(const Token* beg, const Token* end, std::map<Token*, Token*>* forwardDecls) {
627 if (!forwardDecls)

Callers 9

createTokensMethod · 0.80
expandMethod · 0.80
recursiveExpandTokenMethod · 0.80
expandTokenMethod · 0.80
expandHashHashMethod · 0.80
simplifySizeofFunction · 0.80
simplifyHasIncludeFunction · 0.80
simplifyCommentsFunction · 0.80

Calls 3

nextMethod · 0.80
deletePreviousMethod · 0.80
deleteThisMethod · 0.80

Tested by

no test coverage detected