clang 23.0.0git
clang::ssaf::EntityLinkage Class Reference

Represents the linkage properties of an entity in the program model. More...

#include "clang/Analysis/Scalable/Model/EntityLinkage.h"

Public Types

enum class  LinkageType { None , Internal , External }

Public Member Functions

constexpr EntityLinkage (LinkageType L)
LinkageType getLinkage () const
bool operator== (const EntityLinkage &Other) const
bool operator!= (const EntityLinkage &Other) const

Friends

class SerializationFormat
class TestFixture

Detailed Description

Represents the linkage properties of an entity in the program model.

EntityLinkage captures whether an entity has no linkage, internal linkage, or external linkage, which determines its visibility and accessibility across translation units.

Definition at line 22 of file EntityLinkage.h.

Member Enumeration Documentation

◆ LinkageType

Enumerator
None 

local variables, function parameters

Internal 

static functions/variables, anonymous namespace

External 

globally visible across translation units

Definition at line 27 of file EntityLinkage.h.

Constructor & Destructor Documentation

◆ EntityLinkage()

clang::ssaf::EntityLinkage::EntityLinkage ( LinkageType L)
inlineexplicitconstexpr

Definition at line 33 of file EntityLinkage.h.

Referenced by operator!=(), and operator==().

Member Function Documentation

◆ getLinkage()

LinkageType clang::ssaf::EntityLinkage::getLinkage ( ) const
inline

Definition at line 35 of file EntityLinkage.h.

◆ operator!=()

bool clang::ssaf::EntityLinkage::operator!= ( const EntityLinkage & Other) const

Definition at line 36 of file EntityLinkage.cpp.

References EntityLinkage(), and clang::Other.

◆ operator==()

bool clang::ssaf::EntityLinkage::operator== ( const EntityLinkage & Other) const

Definition at line 32 of file EntityLinkage.cpp.

References EntityLinkage(), and clang::Other.

◆ SerializationFormat

friend class SerializationFormat
friend

Definition at line 23 of file EntityLinkage.h.

References SerializationFormat.

Referenced by SerializationFormat.

◆ TestFixture

friend class TestFixture
friend

Definition at line 24 of file EntityLinkage.h.

References TestFixture.

Referenced by TestFixture.


The documentation for this class was generated from the following files: