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

Function swap

lib/checkleakautovar.h:79–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 }
78
79 void swap(VarInfo &other) noexcept {
80 alloctype.swap(other.alloctype);
81 possibleUsage.swap(other.possibleUsage);
82 conditionalAlloc.swap(other.conditionalAlloc);
83 referenced.swap(other.referenced);
84 }
85
86 void reallocToAlloc(nonneg int varid) {
87 const AllocInfo& alloc = alloctype[varid];

Callers

nothing calls this directly

Calls 1

swapMethod · 0.45

Tested by

no test coverage detected