clang
23.0.0git
include
clang
Analysis
Scalable
EntityLinker
LUSummary.h
Go to the documentation of this file.
1
//===- LUSummary.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
// This file defines the LUSummary class, which represents a link unit summary
10
// containing merged and deduplicated entity summaries from multiple TUs.
11
//
12
//===----------------------------------------------------------------------===//
13
14
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_ENTITYLINKER_LUSUMMARY_H
15
#define LLVM_CLANG_ANALYSIS_SCALABLE_ENTITYLINKER_LUSUMMARY_H
16
17
#include "
clang/Analysis/Scalable/Model/BuildNamespace.h
"
18
#include "
clang/Analysis/Scalable/Model/EntityId.h
"
19
#include "
clang/Analysis/Scalable/Model/EntityIdTable.h
"
20
#include "
clang/Analysis/Scalable/Model/EntityLinkage.h
"
21
#include "
clang/Analysis/Scalable/Model/SummaryName.h
"
22
#include "
clang/Analysis/Scalable/TUSummary/EntitySummary.h
"
23
#include <map>
24
#include <memory>
25
26
namespace
clang::ssaf
{
27
28
/// Represents a link unit (LU) summary containing merged entity summaries.
29
///
30
/// LUSummary is the result of linking multiple translation unit summaries
31
/// together. It contains deduplicated entities with their linkage information
32
/// and the merged entity summaries.
33
class
LUSummary
{
34
friend
class
SerializationFormat
;
35
friend
class
TestFixture
;
36
37
NestedBuildNamespace
LUNamespace;
38
39
EntityIdTable
IdTable;
40
41
std::map<EntityId, EntityLinkage> LinkageTable;
42
43
std::map<SummaryName, std::map<EntityId, std::unique_ptr<EntitySummary>>>
44
Data;
45
46
public
:
47
explicit
LUSummary
(
NestedBuildNamespace
LUNamespace)
48
: LUNamespace(
std
::move(LUNamespace)) {}
49
};
50
51
}
// namespace clang::ssaf
52
53
#endif
// LLVM_CLANG_ANALYSIS_SCALABLE_ENTITYLINKER_LUSUMMARY_H
BuildNamespace.h
EntityIdTable.h
EntityId.h
EntityLinkage.h
EntitySummary.h
SummaryName.h
clang::ssaf::EntityIdTable
Manages entity name interning and provides efficient EntityId handles.
Definition
EntityIdTable.h:23
clang::ssaf::LUSummary::LUSummary
LUSummary(NestedBuildNamespace LUNamespace)
Definition
LUSummary.h:47
clang::ssaf::LUSummary::SerializationFormat
friend class SerializationFormat
Definition
LUSummary.h:34
clang::ssaf::LUSummary::TestFixture
friend class TestFixture
Definition
LUSummary.h:35
clang::ssaf::NestedBuildNamespace
Represents a hierarchical sequence of build namespaces.
Definition
BuildNamespace.h:82
clang::ssaf
Definition
UnsafeBufferUsage.h:18
std
Definition
__clang_cuda_cmath.h:361
Generated on
for clang by
1.14.0