clang 23.0.0git
TUSummaryBuilder.cpp
Go to the documentation of this file.
5#include <memory>
6#include <utility>
7
8using namespace clang;
9using namespace ssaf;
10
12 return Summary.IdTable.getId(E);
13}
14
15std::pair<EntitySummary *, bool>
16TUSummaryBuilder::addSummaryImpl(EntityId Entity,
17 std::unique_ptr<EntitySummary> &&Data) {
18 auto &EntitySummaries = Summary.Data[Data->getSummaryName()];
19 auto [It, Inserted] = EntitySummaries.try_emplace(Entity, std::move(Data));
20 return {It->second.get(), Inserted};
21}
Lightweight opaque handle representing an entity in an EntityIdTable.
Definition EntityId.h:31
Uniquely identifies an entity in a program.
Definition EntityName.h:28
EntityId addEntity(const EntityName &E)
Add an entity to the summary and return its EntityId.
The JSON file list parser is used to communicate input to InstallAPI.