Fixed #2755 (cppcheck goes into infinite loop while scanning OpenSSL sources)
This commit is contained in:
parent
e30852200e
commit
fb32d5111e
|
@ -8691,7 +8691,7 @@ void Tokenizer::removeExceptionSpecifications(Token *tok) const
|
|||
|
||||
else if (Token::Match(tok, "class|namespace|struct %type%"))
|
||||
{
|
||||
while (tok && !Token::Match(tok, "[;{]"))
|
||||
while (tok && !Token::Match(tok, "[;{=]"))
|
||||
tok = tok->next();
|
||||
if (tok && tok->str() == "{")
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue