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

Function deleteAlias

lib/tokenize.cpp:11099–11110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11097}
11098
11099static Token * deleteAlias(Token * tok)
11100{
11101 Token::eraseTokens(tok, Token::findsimplematch(tok, ";"));
11102
11103 // delete first token
11104 tok->deleteThis();
11105
11106 // delete ';' if not last token
11107 tok->deleteThis();
11108
11109 return tok;
11110}
11111
11112void Tokenizer::simplifyNamespaceAliases()
11113{

Callers 1

Calls 2

findsimplematchFunction · 0.85
deleteThisMethod · 0.80

Tested by

no test coverage detected