Fixed #2591 (cppcheck hangs with 100% cpu load ( class A : ))
This commit is contained in:
parent
5984b6b53f
commit
55711698d0
|
@ -9237,9 +9237,11 @@ void Tokenizer::simplifyBorland()
|
||||||
// Remove Qt signals and slots
|
// Remove Qt signals and slots
|
||||||
void Tokenizer::simplifyQtSignalsSlots()
|
void Tokenizer::simplifyQtSignalsSlots()
|
||||||
{
|
{
|
||||||
Token *tok = _tokens;
|
for (Token *tok = _tokens; tok; tok = tok->next())
|
||||||
while (NULL != (tok = const_cast<Token *>(Token::findmatch(tok, "class %var% :"))))
|
|
||||||
{
|
{
|
||||||
|
if (!Token::Match(tok, "class %var% :"))
|
||||||
|
continue;
|
||||||
|
|
||||||
if (tok->previous() && tok->previous()->str() == "enum")
|
if (tok->previous() && tok->previous()->str() == "enum")
|
||||||
{
|
{
|
||||||
tok = tok->tokAt(2);
|
tok = tok->tokAt(2);
|
||||||
|
|
Loading…
Reference in New Issue