MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / iteratorsError

Method iteratorsError

lib/checkstl.cpp:360–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360void CheckStlImpl::iteratorsError(const Token* tok, const std::string& containerName1, const std::string& containerName2)
361{
362 reportError(tok, Severity::error, "iterators1",
363 "$symbol:" + containerName1 + "\n"
364 "$symbol:" + containerName2 + "\n"
365 "Same iterator is used with different containers '" + containerName1 + "' and '" + containerName2 + "'.", CWE664, Certainty::normal);
366}
367
368void CheckStlImpl::iteratorsError(const Token* tok, const Token* containerTok, const std::string& containerName)
369{

Callers 1

getErrorMessagesMethod · 0.80

Calls 1

reportErrorFunction · 0.70

Tested by

no test coverage detected