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

Method overlappingWriteUnion

lib/checkother.cpp:4783–4786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4781}
4782
4783void CheckOtherImpl::overlappingWriteUnion(const Token *tok)
4784{
4785 reportError(tok, Severity::error, "overlappingWriteUnion", "Overlapping read/write of union is undefined behavior");
4786}
4787
4788void CheckOtherImpl::overlappingWriteFunction(const Token *tok, const std::string& funcname)
4789{

Callers 1

getErrorMessagesMethod · 0.80

Calls 1

reportErrorFunction · 0.70

Tested by

no test coverage detected