templates: extracted the template simplification into a separate function

This commit is contained in:
Daniel Marjamäki 2009-05-03 21:23:47 +02:00
parent 0f59ef9064
commit 7a8b980627
2 changed files with 11 additions and 0 deletions

View File

@ -479,6 +479,12 @@ void Tokenizer::tokenize(std::istream &code, const char FileName[])
simplifyVarDecl();
// Handle templates..
simplifyTemplates();
}
//---------------------------------------------------------------------------
void Tokenizer::simplifyTemplates()
{
for (Token *tok = _tokens; tok; tok = tok->next())
{
if (!Token::simpleMatch(tok, "template <"))

View File

@ -193,6 +193,11 @@ private:
*/
void simplifyNamespaces();
/**
* Simplify templates
*/
void simplifyTemplates();
void InsertTokens(Token *dest, Token *src, unsigned int n);
/**