|
Cppcheck
|
#include <checkleakautovar.h>
Public Member Functions | |
| void | clear () |
| void | erase (unsigned int varid) |
| void | swap (VarInfo &other) |
| void | possibleUsageAll (const std::string &functionName) |
| set possible usage for all variables | |
| void | print () |
Static Public Member Functions | |
| VarInfo (const Variable *_var, const Token *_tok) | |
Public Attributes | |
| const Variable * | var |
| const Token * | tok |
| std::map< unsigned int, std::string > | alloctype |
| std::map< unsigned int, std::string > | possibleUsage |
| std::set< unsigned int > | conditionalAlloc |
| std::set< unsigned int > | referenced |
Definition at line 1827 of file checkclass.cpp.
| VarInfo::VarInfo | ( | const Variable * | _var, |
| const Token * | _tok | ||
| ) | [inline, static] |
Definition at line 1828 of file checkclass.cpp.
| void VarInfo::clear | ( | ) | [inline] |
Definition at line 36 of file checkleakautovar.h.
Referenced by CheckLeakAutoVar::checkScope().
| void VarInfo::erase | ( | unsigned int | varid | ) | [inline] |
Definition at line 43 of file checkleakautovar.h.
Referenced by CheckLeakAutoVar::checkScope(), and CheckLeakAutoVar::functionCall().
| void VarInfo::possibleUsageAll | ( | const std::string & | functionName | ) |
set possible usage for all variables
Definition at line 58 of file checkleakautovar.cpp.
References alloctype, and possibleUsage.
Referenced by CheckLeakAutoVar::checkScope().
| void VarInfo::print | ( | ) |
Definition at line 43 of file checkleakautovar.cpp.
References alloctype, and possibleUsage.
| void VarInfo::swap | ( | VarInfo & | other | ) | [inline] |
Definition at line 49 of file checkleakautovar.h.
References alloctype, conditionalAlloc, possibleUsage, and referenced.
Referenced by CheckLeakAutoVar::checkScope().
| std::map<unsigned int, std::string> VarInfo::alloctype |
Definition at line 31 of file checkleakautovar.h.
Referenced by CheckLeakAutoVar::check(), CheckLeakAutoVar::checkScope(), CheckLeakAutoVar::functionCall(), CheckLeakAutoVar::leakIfAllocated(), possibleUsageAll(), print(), CheckLeakAutoVar::ret(), and swap().
| std::set<unsigned int> VarInfo::conditionalAlloc |
Definition at line 33 of file checkleakautovar.h.
Referenced by CheckLeakAutoVar::check(), CheckLeakAutoVar::checkScope(), CheckLeakAutoVar::ret(), and swap().
| std::map<unsigned int, std::string> VarInfo::possibleUsage |
Definition at line 32 of file checkleakautovar.h.
Referenced by CheckLeakAutoVar::checkScope(), CheckLeakAutoVar::functionCall(), CheckLeakAutoVar::leakIfAllocated(), possibleUsageAll(), print(), CheckLeakAutoVar::ret(), and swap().
| std::set<unsigned int> VarInfo::referenced |
Definition at line 34 of file checkleakautovar.h.
Referenced by CheckLeakAutoVar::checkScope(), CheckLeakAutoVar::ret(), and swap().
| const Token* VarInfo::tok |
Definition at line 1832 of file checkclass.cpp.
| const Variable* VarInfo::var |
Definition at line 1831 of file checkclass.cpp.
1.7.6.1