clang 20.0.0git
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.
 
virtual void handleConstRefUseOfUninitVariable (const VarDecl *vd, const UninitUse &use)
 Called when the uninitialized variable is used as const refernce argument.
 
virtual void handleSelfInit (const VarDecl *vd)
 Called when the uninitialized variable analysis detects the idiom 'int x = x'.
 

Detailed Description

Definition at line 104 of file UninitializedValues.h.

Constructor & Destructor Documentation

◆ UninitVariablesHandler()

clang::UninitVariablesHandler::UninitVariablesHandler ( )
default

◆ ~UninitVariablesHandler()

UninitVariablesHandler::~UninitVariablesHandler ( )
virtualdefault

Member Function Documentation

◆ handleConstRefUseOfUninitVariable()

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

Called when the uninitialized variable is used as const refernce argument.

Definition at line 114 of file UninitializedValues.h.

◆ 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 120 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 110 of file UninitializedValues.h.


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