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

Method overlappingWriteFunction

lib/checkother.cpp:4788–4791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4786}
4787
4788void CheckOtherImpl::overlappingWriteFunction(const Token *tok, const std::string& funcname)
4789{
4790 reportError(tok, Severity::error, "overlappingWriteFunction", "Overlapping read/write in " + funcname + "() is undefined behavior");
4791}
4792
4793void CheckOther::runChecks(const Tokenizer &tokenizer, ErrorLogger& errorLogger)
4794{

Callers 1

getErrorMessagesMethod · 0.80

Calls 1

reportErrorFunction · 0.70

Tested by

no test coverage detected