We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b067f37 commit 6337a50Copy full SHA for 6337a50
1 file changed
lib/checkstl.cpp
@@ -2579,8 +2579,8 @@ static bool isEarlyExit(const Token *start)
2579
if (start->str() != "{")
2580
return false;
2581
const Token *endToken = start->link();
2582
- const Token *tok = Token::findmatch(start, "return|throw|break", endToken);
2583
- if (!tok)
+ const Token *tok = Token::findmatch(start, "return|throw|break|continue", endToken);
+ if (!tok || tok->str() == "continue")
2584
2585
const Token *endStatement = Token::findsimplematch(tok, "; }", endToken);
2586
if (!endStatement)
0 commit comments