typedef: don't simplify typedef after 'case'. it means that there is a typedef and constant with the same names. Ticket: #2386
This commit is contained in:
parent
2a77dd3df1
commit
789d944912
|
@ -1184,6 +1184,10 @@ void Tokenizer::simplifyTypedef()
|
|||
simplifyType = true;
|
||||
}
|
||||
}
|
||||
else if (Token::Match(tok2->previous(), "case %type% :"))
|
||||
{
|
||||
tok2 = tok2->next();
|
||||
}
|
||||
else if (duplicateTypedef(&tok2, typeName))
|
||||
{
|
||||
exitScope = scope;
|
||||
|
|
Loading…
Reference in New Issue