Remove temporary daca bailouts

This commit is contained in:
Daniel Marjamäki 2020-04-15 19:54:42 +02:00
parent ce8c94390f
commit 266c8d2c09
1 changed files with 0 additions and 14 deletions

View File

@ -4301,20 +4301,6 @@ bool Tokenizer::simplifyTokenList1(const char FileName[])
}
}
// Some special bailouts in DACA. To avoid too much hangs/crashes.
// FIXME: This is hopefully temporary. Somehow it should not be used in releases.
if (mSettings->daca) {
int numcase = 0;
for (const Token *tok = list.front(); tok; tok = tok->next()) {
if (Token::Match(tok, "%name% [ %num% ] = {") && MathLib::toLongNumber(tok->strAt(2)) > 10000)
return false;
if (tok->str() == "case") {
if (++numcase > 10000)
return false;
}
}
}
// Is there C++ code in C file?
validateC();