clang API Documentation

Public Member Functions | Static Public Member Functions
clang::LinkageInfo Class Reference

#include <Visibility.h>

List of all members.

Public Member Functions

 LinkageInfo ()
 LinkageInfo (Linkage L, Visibility V, bool E)
Linkage getLinkage () const
Visibility getVisibility () const
bool isVisibilityExplicit () const
void setLinkage (Linkage L)
void mergeLinkage (Linkage L)
void mergeLinkage (LinkageInfo other)
void mergeExternalVisibility (Linkage L)
void mergeExternalVisibility (LinkageInfo Other)
void mergeVisibility (Visibility newVis, bool newExplicit)
 Merge in the visibility 'newVis'.
void mergeVisibility (LinkageInfo other)
void merge (LinkageInfo other)
 Merge both linkage and visibility.
void mergeMaybeWithVisibility (LinkageInfo other, bool withVis)
 Merge linkage and conditionally merge visibility.

Static Public Member Functions

static LinkageInfo external ()
static LinkageInfo internal ()
static LinkageInfo uniqueExternal ()
static LinkageInfo none ()

Detailed Description

Definition at line 51 of file Visibility.h.


Constructor & Destructor Documentation

Definition at line 58 of file Visibility.h.

Referenced by external(), internal(), none(), and uniqueExternal().

Definition at line 60 of file Visibility.h.

References getLinkage(), getVisibility(), and isVisibilityExplicit().


Member Function Documentation

static LinkageInfo clang::LinkageInfo::external ( ) [inline, static]

Definition at line 66 of file Visibility.h.

References LinkageInfo().

Referenced by computeLinkageInfo(), computeLVForDecl(), and getLVForClosure().

static LinkageInfo clang::LinkageInfo::internal ( ) [inline, static]
void clang::LinkageInfo::merge ( LinkageInfo  other) [inline]

Merge both linkage and visibility.

Definition at line 128 of file Visibility.h.

References mergeLinkage(), and mergeVisibility().

Referenced by computeLinkageInfo(), getLVForNamespaceScopeDecl(), getLVForTemplateArgumentList(), and getLVForTemplateParameterList().

Definition at line 102 of file Visibility.h.

References getLinkage(), and mergeExternalVisibility().

Definition at line 85 of file Visibility.h.

References getLinkage(), clang::minLinkage(), and setLinkage().

Referenced by merge(), mergeLinkage(), and mergeMaybeWithVisibility().

Definition at line 88 of file Visibility.h.

References getLinkage(), and mergeLinkage().

void clang::LinkageInfo::mergeMaybeWithVisibility ( LinkageInfo  other,
bool  withVis 
) [inline]

Merge linkage and conditionally merge visibility.

Definition at line 134 of file Visibility.h.

References mergeLinkage(), and mergeVisibility().

Referenced by getLVForClassMember(), getLVForNamespaceScopeDecl(), and mergeTemplateLV().

void clang::LinkageInfo::mergeVisibility ( Visibility  newVis,
bool  newExplicit 
) [inline]

Merge in the visibility 'newVis'.

Definition at line 107 of file Visibility.h.

References getVisibility().

Referenced by getLVForClassMember(), getLVForLocalDecl(), getLVForNamespaceScopeDecl(), merge(), mergeMaybeWithVisibility(), mergeTemplateLV(), and mergeVisibility().

Definition at line 123 of file Visibility.h.

References getVisibility(), isVisibilityExplicit(), and mergeVisibility().

static LinkageInfo clang::LinkageInfo::none ( ) [inline, static]
static LinkageInfo clang::LinkageInfo::uniqueExternal ( ) [inline, static]

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