clang  6.0.0svn
Public Member Functions | List of all members
clang::UninitVariablesHandler Class Reference

#include "clang/Analysis/Analyses/UninitializedValues.h"

Public Member Functions

 UninitVariablesHandler ()
 
virtual ~UninitVariablesHandler ()
 
virtual void handleUseOfUninitVariable (const VarDecl *vd, const UninitUse &use)
 Called when the uninitialized variable is used at the given expression. More...
 
virtual void handleSelfInit (const VarDecl *vd)
 Called when the uninitialized variable analysis detects the idiom 'int x = x'. More...
 

Detailed Description

Definition at line 100 of file UninitializedValues.h.

Constructor & Destructor Documentation

◆ UninitVariablesHandler()

clang::UninitVariablesHandler::UninitVariablesHandler ( )
inline

Definition at line 102 of file UninitializedValues.h.

◆ ~UninitVariablesHandler()

UninitVariablesHandler::~UninitVariablesHandler ( )
virtual

Definition at line 921 of file UninitializedValues.cpp.

Member Function Documentation

◆ handleSelfInit()

virtual void clang::UninitVariablesHandler::handleSelfInit ( const VarDecl vd)
inlinevirtual

Called when the uninitialized variable analysis detects the idiom 'int x = x'.

All other uses of 'x' within the initializer are handled by handleUseOfUninitVariable.

Definition at line 112 of file UninitializedValues.h.

◆ handleUseOfUninitVariable()

virtual void clang::UninitVariablesHandler::handleUseOfUninitVariable ( const VarDecl vd,
const UninitUse use 
)
inlinevirtual

Called when the uninitialized variable is used at the given expression.

Definition at line 106 of file UninitializedValues.h.


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