Cppcheck
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
VarInfo Class Reference

#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, AllocInfoalloctype
 
std::map< int, std::pair< const Token *, Usage > > possibleUsage
 
std::set< int > conditionalAlloc
 
std::set< int > referenced
 

Detailed Description

Definition at line 39 of file checkleakautovar.h.

Member Enumeration Documentation

◆ AllocStatus

Enumerator
REALLOC 
OWNED 
DEALLOC 
NOALLOC 
ALLOC 

Definition at line 41 of file checkleakautovar.h.

◆ Usage

Enumerator
USED 
NORET 

Definition at line 57 of file checkleakautovar.h.

Member Function Documentation

◆ clear()

void VarInfo::clear ( )
inline

Definition at line 63 of file checkleakautovar.h.

◆ erase()

void VarInfo::erase ( nonneg int  varid)
inline

Definition at line 70 of file checkleakautovar.h.

◆ possibleUsageAll()

void VarInfo::possibleUsageAll ( const std::pair< const Token *, Usage > &  functionUsage)

set possible usage for all variables

Definition at line 148 of file checkleakautovar.cpp.

References possibleUsageAll().

Referenced by possibleUsageAll().

◆ print()

void VarInfo::print ( )

Definition at line 107 of file checkleakautovar.cpp.

References print().

Referenced by print().

◆ reallocToAlloc()

void VarInfo::reallocToAlloc ( nonneg int  varid)
inline

◆ swap()

void VarInfo::swap ( VarInfo other)
inline

Definition at line 77 of file checkleakautovar.h.

Member Data Documentation

◆ alloctype

std::map<int, AllocInfo> VarInfo::alloctype

Definition at line 58 of file checkleakautovar.h.

◆ conditionalAlloc

std::set<int> VarInfo::conditionalAlloc

Definition at line 60 of file checkleakautovar.h.

◆ possibleUsage

std::map<int, std::pair<const Token*, Usage> > VarInfo::possibleUsage

Definition at line 59 of file checkleakautovar.h.

◆ referenced

std::set<int> VarInfo::referenced

Definition at line 61 of file checkleakautovar.h.


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