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

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

Public Member Functions

 UninitVariablesHandler ()=default
 
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 105 of file UninitializedValues.h.

Constructor & Destructor Documentation

◆ UninitVariablesHandler()

clang::UninitVariablesHandler::UninitVariablesHandler ( )
default

◆ ~UninitVariablesHandler()

UninitVariablesHandler::~UninitVariablesHandler ( )
virtualdefault

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 117 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 111 of file UninitializedValues.h.


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