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

#include "clang/Analysis/Scalable/TUSummary/TUSummaryBuilder.h"

Inheritance diagram for clang::ssaf::TUSummaryBuilder:
[legend]

Public Member Functions

 TUSummaryBuilder (TUSummary &Summary)
EntityId addEntity (const EntityName &E)
 Add an entity to the summary and return its EntityId.
template<typename ConcreteEntitySummary, DerivesFromEntitySummary< ConcreteEntitySummary > * = nullptr>
std::pair< EntitySummary *, booladdSummary (EntityId Entity, std::unique_ptr< ConcreteEntitySummary > &&Data)
 Associate the Data EntitySummary with the Entity.

Detailed Description

Definition at line 22 of file TUSummaryBuilder.h.

Constructor & Destructor Documentation

◆ TUSummaryBuilder()

clang::ssaf::TUSummaryBuilder::TUSummaryBuilder ( TUSummary & Summary)
inlineexplicit

Definition at line 24 of file TUSummaryBuilder.h.

Member Function Documentation

◆ addEntity()

EntityId TUSummaryBuilder::addEntity ( const EntityName & E)

Add an entity to the summary and return its EntityId.

If the entity already exists, returns the existing ID (idempotent).

Definition at line 11 of file TUSummaryBuilder.cpp.

◆ 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 56 of file TUSummaryBuilder.h.

References clang::Data.


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