Skip to content

Commit

Permalink
return
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Feb 2, 2024
1 parent d6c2045 commit 2b79702
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/checkstl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3124,6 +3124,7 @@ void CheckStl::eraseIteratorOutOfBoundsError(const Token *ftok, const Token* ite
"Calling function 'erase()' on the iterator 'iter' which is out of bounds.", CWE628, Certainty::normal);
reportError(ftok, Severity::warning, "eraseIteratorOutOfBoundsCond",
"Either the condition 'x' is redundant or function 'erase()' is called on the iterator 'iter' which is out of bounds.", CWE628, Certainty::normal);
return;
}
const std::string& func = ftok->str();
const std::string iter = itertok->expressionString();
Expand Down

0 comments on commit 2b79702

Please sign in to comment.