clang 23.0.0git
clang::ssaf::TUSummaryBuilder Class Reference

#include "clang/ScalableStaticAnalysis/Core/TUSummary/TUSummaryBuilder.h"

Public Member Functions

 TUSummaryBuilder (TUSummary &Summary, const SSAFOptions &Options)
EntityId addEntity (const EntityName &EN, EntityLinkageType Linkage)
template<typename ConcreteEntitySummary, DerivesFromEntitySummary< ConcreteEntitySummary > * = nullptr>
std::pair< EntitySummary *, booladdSummary (EntityId Entity, std::unique_ptr< ConcreteEntitySummary > &&Data)
 Associate the Data EntitySummary with the Entity.
const SSAFOptionsgetOptions () const

Detailed Description

Definition at line 24 of file TUSummaryBuilder.h.

Constructor & Destructor Documentation

◆ TUSummaryBuilder()

clang::ssaf::TUSummaryBuilder::TUSummaryBuilder ( TUSummary & Summary,
const SSAFOptions & Options )
inline

Definition at line 26 of file TUSummaryBuilder.h.

Member Function Documentation

◆ addEntity()

EntityId TUSummaryBuilder::addEntity ( const EntityName & EN,
EntityLinkageType Linkage )

Definition at line 20 of file TUSummaryBuilder.cpp.

References clang::Link.

◆ addSummary()

template<typename ConcreteEntitySummary, DerivesFromEntitySummary< ConcreteEntitySummary > *>
std::pair< EntitySummary *, bool > clang::ssaf::TUSummaryBuilder::addSummary ( EntityId Entity,
std::unique_ptr< ConcreteEntitySummary > && Data )

Associate the Data EntitySummary with the Entity.

This consumes the Data only if Entity wasn't associated yet with the same kind of EntitySummary.

Returns
a pointer to the EntitySummary and whether it inserted or not.

Definition at line 61 of file TUSummaryBuilder.h.

References clang::Data.

◆ getOptions()

const SSAFOptions & clang::ssaf::TUSummaryBuilder::getOptions ( ) const
inline
Returns
the SSAFOptions of this builder.

Definition at line 41 of file TUSummaryBuilder.h.


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