clang 22.0.0git
VariableGroupsManagerImpl Class Reference
Inheritance diagram for VariableGroupsManagerImpl:
[legend]

Public Member Functions

 VariableGroupsManagerImpl (const std::vector< VarGrpTy > &Groups, const std::map< const VarDecl *, unsigned > &VarGrpMap, const llvm::SetVector< const VarDecl * > &GrpsUnionForParms)
VarGrpRef getGroupOfVar (const VarDecl *Var, bool *HasParm) const override
 Returns the set of variables (including Var) that need to be fixed together in one step.
VarGrpRef getGroupOfParms () const override
 Returns the non-empty group of variables that include parameters of the analyzing function, if such a group exists.
Public Member Functions inherited from clang::VariableGroupsManager
 VariableGroupsManager ()=default
virtual ~VariableGroupsManager ()=default

Detailed Description

Definition at line 4030 of file UnsafeBufferUsage.cpp.

Constructor & Destructor Documentation

◆ VariableGroupsManagerImpl()

VariableGroupsManagerImpl::VariableGroupsManagerImpl ( const std::vector< VarGrpTy > & Groups,
const std::map< const VarDecl *, unsigned > & VarGrpMap,
const llvm::SetVector< const VarDecl * > & GrpsUnionForParms )
inline

Definition at line 4036 of file UnsafeBufferUsage.cpp.

Member Function Documentation

◆ getGroupOfParms()

VarGrpRef VariableGroupsManagerImpl::getGroupOfParms ( ) const
inlineoverridevirtual

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

An empty group, otherwise.

Implements clang::VariableGroupsManager.

Definition at line 4059 of file UnsafeBufferUsage.cpp.

◆ getGroupOfVar()

VarGrpRef VariableGroupsManagerImpl::getGroupOfVar ( const VarDecl * Var,
bool * HasParm ) const
inlineoverridevirtual

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.

Implements clang::VariableGroupsManager.

Definition at line 4043 of file UnsafeBufferUsage.cpp.


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