From ed6f6835736f3b29637e4fe000918baf1b335a10 Mon Sep 17 00:00:00 2001 From: Robert Reif Date: Wed, 5 Jan 2011 17:39:53 +0100 Subject: [PATCH] typedef: better handling. ticket: #2414 --- lib/tokenize.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 459a0f43e..765522e5a 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -1645,9 +1645,12 @@ void Tokenizer::simplifyTypedef() tok2 = tok2->next(); } - // skip over variable name + // skip over variable name if there if (!inCast) - tok2 = tok2->next(); + { + if (tok2->next()->str() != ")") + tok2 = tok2->next(); + } if (tok4 && functionPtrRetFuncPtr) {