clang 20.0.0git
Public Member Functions | List of all members
clang::VariableGroupsManager Class Referenceabstract

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

Inheritance diagram for clang::VariableGroupsManager:
Inheritance graph
[legend]

Public Member Functions

 VariableGroupsManager ()=default
 
virtual ~VariableGroupsManager ()=default
 
virtual VarGrpRef getGroupOfVar (const VarDecl *Var, bool *HasParm=nullptr) const =0
 Returns the set of variables (including Var) that need to be fixed together in one step.
 
virtual VarGrpRef getGroupOfParms () const =0
 Returns the non-empty group of variables that include parameters of the analyzing function, if such a group exists.
 

Detailed Description

Definition at line 27 of file UnsafeBufferUsage.h.

Constructor & Destructor Documentation

◆ VariableGroupsManager()

clang::VariableGroupsManager::VariableGroupsManager ( )
default

◆ ~VariableGroupsManager()

virtual clang::VariableGroupsManager::~VariableGroupsManager ( )
virtualdefault

Member Function Documentation

◆ getGroupOfParms()

virtual VarGrpRef clang::VariableGroupsManager::getGroupOfParms ( ) const
pure virtual

Returns the non-empty group of variables that include parameters of the analyzing function, if such a group exists.

An empty group, otherwise.

Implemented in VariableGroupsManagerImpl.

Referenced by createFunctionOverloadsForParms().

◆ getGroupOfVar()

virtual VarGrpRef clang::VariableGroupsManager::getGroupOfVar ( const VarDecl Var,
bool HasParm = nullptr 
) const
pure virtual

Returns the set of variables (including Var) that need to be fixed together in one step.

Var must be a variable that needs fix (so it must be in a group). HasParm is an optional argument that will be set to true if the set of variables, where Var is in, contains parameters.

Implemented in VariableGroupsManagerImpl.

Referenced by eraseVarsForUnfixableGroupMates(), and getFixIts().


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