class StoredDeclsList

Declaration

class StoredDeclsList { /* full declaration omitted */ };

Description

An array of decls optimized for the common case of only containing one entry.

Declared at: clang/include/clang/AST/DeclContextInternals.h:33

Member Variables

private clang::StoredDeclsList::DeclsAndHasExternalTy Data
The stored data, which will be either a pointer to a NamedDecl, or a pointer to a list with a flag to indicate if there are further external declarations.

Method Overview

Methods

void MaybeDeallocList()

Declared at: clang/include/clang/AST/DeclContextInternals.h:96

StoredDeclsList()

Declared at: clang/include/clang/AST/DeclContextInternals.h:89

StoredDeclsList(clang::StoredDeclsList&& RHS)

Declared at: clang/include/clang/AST/DeclContextInternals.h:91

Parameters

clang::StoredDeclsList&& RHS

void addOrReplaceDecl(clang::NamedDecl* D)

Description

If this is a redeclaration of an existing decl, replace the old one with D. Otherwise, append D.

Declared at: clang/include/clang/AST/DeclContextInternals.h:215

Parameters

clang::NamedDecl* D

void dump() const

Declared at: clang/include/clang/AST/DeclContextInternals.h:277

void erase(clang::NamedDecl* ND)

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

Parameters

clang::NamedDecl* ND

template <typename Fn>
void erase_if(Fn ShouldErase)

Declared at: clang/include/clang/AST/DeclContextInternals.h:46

Templates

Fn

Parameters

Fn ShouldErase

clang::ASTContext& getASTContext()

Declared at: clang/include/clang/AST/DeclContextInternals.h:123

clang::NamedDecl* getAsDecl() const

Declared at: clang/include/clang/AST/DeclContextInternals.h:132

clang::DeclListNode* getAsList() const

Declared at: clang/include/clang/AST/DeclContextInternals.h:136

clang::StoredDeclsList::DeclsAndHasExternalTy
getAsListAndHasExternal() const

Declared at: clang/include/clang/AST/DeclContextInternals.h:130

DeclContext::lookup_result getLookupResult() const

Description

Return an array of all the decls that this list represents.

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

bool hasExternalDecls() const

Declared at: clang/include/clang/AST/DeclContextInternals.h:140

bool isNull() const

Declared at: clang/include/clang/AST/DeclContextInternals.h:121

void prependDeclNoReplace(clang::NamedDecl* D)

Description

Add a declaration to the list without checking if it replaces anything.

Declared at: clang/include/clang/AST/DeclContextInternals.h:265

Parameters

clang::NamedDecl* D

void remove(clang::NamedDecl* D)

Declared at: clang/include/clang/AST/DeclContextInternals.h:148

Parameters

clang::NamedDecl* D

void removeExternalDecls()

Description

Remove any declarations which were imported from an external AST source.

Declared at: clang/include/clang/AST/DeclContextInternals.h:154

void replaceExternalDecls(
    ArrayRef<clang::NamedDecl*> Decls)

Declared at: clang/include/clang/AST/DeclContextInternals.h:161

Parameters

ArrayRef<clang::NamedDecl*> Decls

void setHasExternalDecls()

Declared at: clang/include/clang/AST/DeclContextInternals.h:144

~StoredDeclsList()

Declared at: clang/include/clang/AST/DeclContextInternals.h:108