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

Method invalidIteratorError

lib/checkstl.cpp:355–358  ·  view source on GitHub ↗

Error message for bad iterator usage..

Source from the content-addressed store, hash-verified

353
354// Error message for bad iterator usage..
355void CheckStlImpl::invalidIteratorError(const Token *tok, const std::string &iteratorName)
356{
357 reportError(tok, Severity::error, "invalidIterator1", "$symbol:"+iteratorName+"\nInvalid iterator: $symbol", CWE664, Certainty::normal);
358}
359
360void CheckStlImpl::iteratorsError(const Token* tok, const std::string& containerName1, const std::string& containerName2)
361{

Callers 1

getErrorMessagesMethod · 0.80

Calls 1

reportErrorFunction · 0.70

Tested by

no test coverage detected