clang 22.0.0git
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 handleSelfInit (const VarDecl *vd)
 Called when the uninitialized variable analysis detects the idiom 'int x = x'.

Detailed Description

Definition at line 116 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 128 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 122 of file UninitializedValues.h.


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