clang 23.0.0git
EntityLinkage.cpp
Go to the documentation of this file.
1//===- EntityLinkage.cpp --------------------------------------------------===//
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
10
12
13namespace clang::ssaf {
14
16 return Linkage == Other.Linkage;
17}
18
20 return !(*this == Other);
21}
22
23llvm::raw_ostream &operator<<(llvm::raw_ostream &OS,
26}
27
28llvm::raw_ostream &operator<<(llvm::raw_ostream &OS,
29 const EntityLinkage &Linkage) {
30 return OS << "EntityLinkage(" << Linkage.getLinkage() << ")";
31}
32
33} // namespace clang::ssaf
Represents the linkage properties of an entity in the program model.
bool operator!=(const EntityLinkage &Other) const
constexpr EntityLinkage(EntityLinkageType L)
bool operator==(const EntityLinkage &Other) const
llvm::raw_ostream & operator<<(llvm::raw_ostream &OS, BuildNamespaceKind BNK)
llvm::StringRef entityLinkageTypeToString(EntityLinkageType LT)
Returns the canonical string representation of LT used for serialization and display (e....
Linkage
Describes the different kinds of linkage (C++ [basic.link], C99 6.2.2) that an entity may have.
Definition Linkage.h:24
@ Other
Other implicit parameter.
Definition Decl.h:1746