From e39b7f1bfd0979503148ea5e8e91c2965f90a56b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 22 Apr 2012 10:24:19 +0200 Subject: [PATCH] Tokenizer::setVarIdNew: Fixed TestTokenizer::varid38 --- lib/tokenize.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index a37059320..094086eed 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -2815,6 +2815,7 @@ static bool setVarIdParseDeclaration(const Token **tok, const std::mapisName()) { if (tok2->str() == "class" || tok2->str() == "struct" || tok2->str() == "union") { hasstruct = true; + typeCount = 0; } else if (!hasstruct && variableId.find(tok2->str()) != variableId.end()) { ++typeCount; tok2 = tok2->next();