class Redeclarable

Declaration

template <typename decl_type>
class Redeclarable { /* full declaration omitted */ };

Description

Provides common interface for the Decls that can be redeclared.

Declared at: clang/include/clang/AST/Redeclarable.h:84

Templates

decl_type

Member Variables

If there is only one declaration, it is <pointer to self, true>
protected decl_type* First

Method Overview

Methods

static clang::Redeclarable::DeclLink
LatestDeclLink(const clang::ASTContext& Ctx)

Declared at: clang/include/clang/AST/Redeclarable.h:170

Parameters

const clang::ASTContext& Ctx

static clang::Redeclarable::DeclLink
PreviousDeclLink(decl_type* D)

Declared at: clang/include/clang/AST/Redeclarable.h:166

Parameters

decl_type* D

Redeclarable<decl_type>(
    const clang::ASTContext& Ctx)

Declared at: clang/include/clang/AST/Redeclarable.h:198

Parameters

const clang::ASTContext& Ctx

decl_type* getFirstDecl()

Description

Return the first declaration of this declaration or itself if this is the only declaration.

Declared at: clang/include/clang/AST/Redeclarable.h:216

const decl_type* getFirstDecl() const

Description

Return the first declaration of this declaration or itself if this is the only declaration.

Declared at: clang/include/clang/AST/Redeclarable.h:220

decl_type* getMostRecentDecl()

Description

Returns the most recent (re)declaration of this declaration.

Declared at: clang/include/clang/AST/Redeclarable.h:226

const decl_type* getMostRecentDecl() const

Description

Returns the most recent (re)declaration of this declaration.

Declared at: clang/include/clang/AST/Redeclarable.h:231

decl_type* getNextRedeclaration() const

Declared at: clang/include/clang/AST/Redeclarable.h:189

decl_type* getPreviousDecl()

Description

Return the previous declaration of this declaration or NULL if this is the first declaration.

Declared at: clang/include/clang/AST/Redeclarable.h:204

const decl_type* getPreviousDecl() const

Declared at: clang/include/clang/AST/Redeclarable.h:209

bool isFirstDecl() const

Description

True if this is the first declaration in its redeclaration chain.

Declared at: clang/include/clang/AST/Redeclarable.h:223

clang::Redeclarable::redecl_range redecls() const

Description

Returns an iterator range for all the redeclarations of the same decl. It will iterate at least once (when this decl is the only one).

Declared at: clang/include/clang/AST/Redeclarable.h:296

clang::Redeclarable::redecl_iterator
redecls_begin() const

Declared at: clang/include/clang/AST/Redeclarable.h:302

clang::Redeclarable::redecl_iterator redecls_end()
    const

Declared at: clang/include/clang/AST/Redeclarable.h:303

void setPreviousDecl(decl_type* PrevDecl)

Description

Set the previous declaration. If PrevDecl is NULL, set this as the first and only declaration.

Declared at: clang/include/clang/AST/Redeclarable.h:237

Parameters

decl_type* PrevDecl