typedef: better handling. ticket: #2414

This commit is contained in:
Robert Reif 2011-01-05 17:39:53 +01:00 committed by Daniel Marjamäki
parent 188871c428
commit ed6f683573
1 changed files with 5 additions and 2 deletions

View File

@ -1645,9 +1645,12 @@ void Tokenizer::simplifyTypedef()
tok2 = tok2->next(); tok2 = tok2->next();
} }
// skip over variable name // skip over variable name if there
if (!inCast) if (!inCast)
tok2 = tok2->next(); {
if (tok2->next()->str() != ")")
tok2 = tok2->next();
}
if (tok4 && functionPtrRetFuncPtr) if (tok4 && functionPtrRetFuncPtr)
{ {