clang 22.0.0git
clang::Redeclarable< decl_type >::DeclLink Class Reference

#include "clang/AST/Redeclarable.h"

Public Types

enum  PreviousTag { PreviousLink }
enum  LatestTag { LatestLink }

Public Member Functions

 DeclLink (LatestTag, const ASTContext &Ctx)
 DeclLink (PreviousTag, decl_type *D)
bool isFirst () const
decl_type * getPrevious (const decl_type *D) const
void setPrevious (decl_type *D)
void setLatest (decl_type *D)
void markIncomplete ()
DeclgetLatestNotUpdated () const

Detailed Description

template<typename decl_type>
class clang::Redeclarable< decl_type >::DeclLink

Definition at line 86 of file Redeclarable.h.

Member Enumeration Documentation

◆ LatestTag

template<typename decl_type>
enum clang::Redeclarable::DeclLink::LatestTag
Enumerator
LatestLink 

Definition at line 109 of file Redeclarable.h.

◆ PreviousTag

template<typename decl_type>
enum clang::Redeclarable::DeclLink::PreviousTag
Enumerator
PreviousLink 

Definition at line 108 of file Redeclarable.h.

Constructor & Destructor Documentation

◆ DeclLink() [1/2]

template<typename decl_type>
clang::Redeclarable< decl_type >::DeclLink::DeclLink ( LatestTag ,
const ASTContext & Ctx )
inline

Definition at line 111 of file Redeclarable.h.

◆ DeclLink() [2/2]

template<typename decl_type>
clang::Redeclarable< decl_type >::DeclLink::DeclLink ( PreviousTag ,
decl_type * D )
inline

Definition at line 113 of file Redeclarable.h.

Member Function Documentation

◆ getLatestNotUpdated()

template<typename decl_type>
Decl * clang::Redeclarable< decl_type >::DeclLink::getLatestNotUpdated ( ) const
inline

Definition at line 154 of file Redeclarable.h.

References clang::cast(), clang::isa(), and isFirst().

Referenced by clang::ASTDeclReader::getMostRecentDeclImpl().

◆ getPrevious()

template<typename decl_type>
decl_type * clang::Redeclarable< decl_type >::DeclLink::getPrevious ( const decl_type * D) const
inline

Definition at line 120 of file Redeclarable.h.

References clang::cast().

◆ isFirst()

template<typename decl_type>
bool clang::Redeclarable< decl_type >::DeclLink::isFirst ( ) const
inline

Definition at line 115 of file Redeclarable.h.

References clang::cast(), and clang::isa().

Referenced by getLatestNotUpdated(), setLatest(), and setPrevious().

◆ markIncomplete()

template<typename decl_type>
void clang::Redeclarable< decl_type >::DeclLink::markIncomplete ( )
inline

Definition at line 152 of file Redeclarable.h.

References clang::cast().

Referenced by clang::ASTDeclReader::markIncompleteDeclChainImpl().

◆ setLatest()

template<typename decl_type>
void clang::Redeclarable< decl_type >::DeclLink::setLatest ( decl_type * D)
inline

Definition at line 139 of file Redeclarable.h.

References clang::cast(), and isFirst().

Referenced by clang::ASTDeclReader::attachLatestDeclImpl().

◆ setPrevious()

template<typename decl_type>
void clang::Redeclarable< decl_type >::DeclLink::setPrevious ( decl_type * D)
inline

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