Cppcheck
Public Member Functions | Static Public Member Functions | Public Attributes
VarInfo Class Reference

#include <checkleakautovar.h>

List of all members.

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 Variablevar
const Tokentok
std::map< unsigned int,
std::string > 
alloctype
std::map< unsigned int,
std::string > 
possibleUsage
std::set< unsigned int > conditionalAlloc
std::set< unsigned int > referenced

Detailed Description

Definition at line 1827 of file checkclass.cpp.


Constructor & Destructor Documentation

VarInfo::VarInfo ( const Variable _var,
const Token _tok 
) [inline, static]

Definition at line 1828 of file checkclass.cpp.


Member Function Documentation

void VarInfo::clear ( ) [inline]

Definition at line 36 of file checkleakautovar.h.

Referenced by CheckLeakAutoVar::checkScope().

void VarInfo::erase ( unsigned int  varid) [inline]
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().


Member Data Documentation

std::map<unsigned int, std::string> VarInfo::alloctype
std::set<unsigned int> VarInfo::conditionalAlloc
std::map<unsigned int, std::string> VarInfo::possibleUsage
std::set<unsigned int> VarInfo::referenced

Definition at line 34 of file checkleakautovar.h.

Referenced by CheckLeakAutoVar::checkScope(), CheckLeakAutoVar::ret(), and swap().

Definition at line 1832 of file checkclass.cpp.

Definition at line 1831 of file checkclass.cpp.


The documentation for this class was generated from the following files: