clang 23.0.0git
SerializationFormat.cpp
Go to the documentation of this file.
1//===- SerializationFormat.cpp ----------------------------------*- 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
14
15using namespace clang::ssaf;
16
20
25
27 return S.IdTable;
28}
29
31 return S.TUNamespace;
32}
33
38
39llvm::StringRef
43
44const std::vector<BuildNamespace> &
46 return NBN.Namespaces;
47}
48
50 return EN.USR;
51}
52
55 return EN.Suffix;
56}
57
60 return EN.Namespace;
61}
Represents a single namespace in the build process.
Manages entity name interning and provides efficient EntityId handles.
Uniquely identifies an entity in a program.
Definition EntityName.h:27
Represents a hierarchical sequence of build namespaces.
static const EntityIdTable & getIdTable(const TUSummary &S)
static BuildNamespaceKind getBuildNamespaceKind(const BuildNamespace &BN)
static llvm::StringRef getBuildNamespaceName(const BuildNamespace &BN)
static const std::vector< BuildNamespace > & getNestedBuildNamespaces(const NestedBuildNamespace &NBN)
static BuildNamespace & getTUNamespaceForDeserialization(TUSummary &S)
static EntityIdTable & getIdTableForDeserialization(TUSummary &S)
static const NestedBuildNamespace & getEntityNameNamespace(const EntityName &EN)
static const BuildNamespace & getTUNamespace(const TUSummary &S)
static llvm::StringRef getEntityNameUSR(const EntityName &EN)
static const llvm::SmallString< 16 > & getEntityNameSuffix(const EntityName &EN)
Data extracted for a given translation unit and for a given set of analyses.
Definition TUSummary.h:23