clang 23.0.0git
TUSummary.h
Go to the documentation of this file.
1//===- TUSummary.h ----------------------------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_TUSUMMARY_TUSUMMARY_H
10#define LLVM_CLANG_ANALYSIS_SCALABLE_TUSUMMARY_TUSUMMARY_H
11
18#include <map>
19#include <memory>
20
21namespace clang::ssaf {
22
23/// Data extracted for a given translation unit and for a given set of analyses.
24class TUSummary {
25 /// Identifies the translation unit.
26 BuildNamespace TUNamespace;
27
28 EntityIdTable IdTable;
29
30 std::map<EntityId, EntityLinkage> LinkageTable;
31
32 std::map<SummaryName, std::map<EntityId, std::unique_ptr<EntitySummary>>>
33 Data;
34
35public:
36 TUSummary(BuildNamespace TUNamespace) : TUNamespace(std::move(TUNamespace)) {}
37
38 friend class SerializationFormat;
39 friend class TestFixture;
40 friend class TUSummaryBuilder;
41};
42
43} // namespace clang::ssaf
44
45#endif // LLVM_CLANG_ANALYSIS_SCALABLE_TUSUMMARY_TUSUMMARY_H
Represents a single namespace in the build process.
Manages entity name interning and provides efficient EntityId handles.
TUSummary(BuildNamespace TUNamespace)
Definition TUSummary.h:36
friend class TUSummaryBuilder
Definition TUSummary.h:40
friend class SerializationFormat
Definition TUSummary.h:38
friend class TestFixture
Definition TUSummary.h:39