diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 93ffbd5b7..4a26b8098 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -2375,6 +2375,12 @@ void Tokenizer::simplifyDoWhileAddBraces() continue; } + if (tok->next()->str() == ")") + { + // fix for #988 + continue; + } + Token *tok1 = tok; // token with "do" Token *tok2 = NULL; // token with "while" Token *tok3 = tok;