Cppcheck
Public Member Functions | Public Attributes | List of all members
VarInfo::AllocInfo Struct Reference

#include <checkleakautovar.h>

Public Member Functions

 AllocInfo (int type_=0, AllocStatus status_=NOALLOC, const Token *allocTok_=nullptr)
 
bool managed () const
 

Public Attributes

AllocStatus status
 
int type
 Allocation type. More...
 
int reallocedFromType = -1
 
const TokenallocTok
 

Detailed Description

Definition at line 42 of file checkleakautovar.h.

Constructor & Destructor Documentation

◆ AllocInfo()

VarInfo::AllocInfo::AllocInfo ( int  type_ = 0,
AllocStatus  status_ = NOALLOC,
const Token allocTok_ = nullptr 
)
inlineexplicit

Definition at line 51 of file checkleakautovar.h.

Member Function Documentation

◆ managed()

bool VarInfo::AllocInfo::managed ( ) const
inline

Definition at line 53 of file checkleakautovar.h.

Member Data Documentation

◆ allocTok

const Token* VarInfo::AllocInfo::allocTok

◆ reallocedFromType

int VarInfo::AllocInfo::reallocedFromType = -1

◆ status

AllocStatus VarInfo::AllocInfo::status

◆ type

int VarInfo::AllocInfo::type

Allocation type.

If it is a positive value then it corresponds to a Library allocation id. A negative value is a builtin checkleakautovar allocation type.

Definition at line 48 of file checkleakautovar.h.

Referenced by CheckLeakAutoVar::changeAllocStatus(), CheckLeakAutoVar::changeAllocStatusIfRealloc(), CheckLeakAutoVar::checkScope(), CheckLeakAutoVar::checkTokenInsideExpression(), and CheckLeakAutoVar::functionCall().


The documentation for this struct was generated from the following file: