Cppcheck
|
#include <checkleakautovar.h>
Classes | |
struct | AllocInfo |
Public Types | |
enum | AllocStatus { REALLOC = -3 , OWNED = -2 , DEALLOC = -1 , NOALLOC = 0 , ALLOC = 1 } |
enum | Usage { USED , NORET } |
Public Member Functions | |
void | clear () |
void | erase (nonneg int varid) |
void | swap (VarInfo &other) |
void | reallocToAlloc (nonneg int varid) |
void | possibleUsageAll (const std::pair< const Token *, Usage > &functionUsage) |
set possible usage for all variables More... | |
void | print () |
Public Attributes | |
std::map< int, AllocInfo > | alloctype |
std::map< int, std::pair< const Token *, Usage > > | possibleUsage |
std::set< int > | conditionalAlloc |
std::set< int > | referenced |
Definition at line 39 of file checkleakautovar.h.
enum VarInfo::AllocStatus |
Enumerator | |
---|---|
REALLOC | |
OWNED | |
DEALLOC | |
NOALLOC | |
ALLOC |
Definition at line 41 of file checkleakautovar.h.
enum VarInfo::Usage |
Enumerator | |
---|---|
USED | |
NORET |
Definition at line 57 of file checkleakautovar.h.
|
inline |
Definition at line 63 of file checkleakautovar.h.
|
inline |
Definition at line 70 of file checkleakautovar.h.
set possible usage for all variables
Definition at line 148 of file checkleakautovar.cpp.
References possibleUsageAll().
Referenced by possibleUsageAll().
void VarInfo::print | ( | ) |
|
inline |
Definition at line 84 of file checkleakautovar.h.
References VarInfo::AllocInfo::reallocedFromType, and VarInfo::AllocInfo::status.
|
inline |
Definition at line 77 of file checkleakautovar.h.
std::map<int, AllocInfo> VarInfo::alloctype |
Definition at line 58 of file checkleakautovar.h.
std::set<int> VarInfo::conditionalAlloc |
Definition at line 60 of file checkleakautovar.h.
Definition at line 59 of file checkleakautovar.h.
std::set<int> VarInfo::referenced |
Definition at line 61 of file checkleakautovar.h.