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
- public void MaybeDeallocList()
- public StoredDeclsList()
- public StoredDeclsList(clang::StoredDeclsList && RHS)
- public void addOrReplaceDecl(clang::NamedDecl * D)
- public void dump() const
- private void erase(clang::NamedDecl * ND)
- private template <typename Fn>void erase_if(Fn ShouldErase)
- public clang::ASTContext & getASTContext()
- public clang::NamedDecl * getAsDecl() const
- public clang::DeclListNode * getAsList() const
- public clang::StoredDeclsList::DeclsAndHasExternalTy getAsListAndHasExternal() const
- public DeclContext::lookup_result getLookupResult() const
- public bool hasExternalDecls() const
- public bool isNull() const
- public void prependDeclNoReplace(clang::NamedDecl * D)
- public void remove(clang::NamedDecl * D)
- public void removeExternalDecls()
- public void replaceExternalDecls(ArrayRef<clang::NamedDecl *> Decls)
- public void setHasExternalDecls()
- public ~StoredDeclsList()
Methods
¶void MaybeDeallocList()
void MaybeDeallocList()
Declared at: clang/include/clang/AST/DeclContextInternals.h:96
¶StoredDeclsList()
StoredDeclsList()
Declared at: clang/include/clang/AST/DeclContextInternals.h:89
¶StoredDeclsList(clang::StoredDeclsList&& RHS)
StoredDeclsList(clang::StoredDeclsList&& RHS)
Declared at: clang/include/clang/AST/DeclContextInternals.h:91
Parameters
- clang::StoredDeclsList&& RHS
¶void addOrReplaceDecl(clang::NamedDecl* D)
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
¶void dump() const
void dump() const
Declared at: clang/include/clang/AST/DeclContextInternals.h:277
¶void erase(clang::NamedDecl* ND)
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)
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()
clang::ASTContext& getASTContext()
Declared at: clang/include/clang/AST/DeclContextInternals.h:123
¶clang::NamedDecl* getAsDecl() const
clang::NamedDecl* getAsDecl() const
Declared at: clang/include/clang/AST/DeclContextInternals.h:132
¶clang::DeclListNode* getAsList() const
clang::DeclListNode* getAsList() const
Declared at: clang/include/clang/AST/DeclContextInternals.h:136
¶clang::StoredDeclsList::DeclsAndHasExternalTy
getAsListAndHasExternal() const
clang::StoredDeclsList::DeclsAndHasExternalTy
getAsListAndHasExternal() const
Declared at: clang/include/clang/AST/DeclContextInternals.h:130
¶DeclContext::lookup_result getLookupResult() const
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
bool hasExternalDecls() const
Declared at: clang/include/clang/AST/DeclContextInternals.h:140
¶bool isNull() const
bool isNull() const
Declared at: clang/include/clang/AST/DeclContextInternals.h:121
¶void prependDeclNoReplace(clang::NamedDecl* D)
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
¶void remove(clang::NamedDecl* D)
void remove(clang::NamedDecl* D)
Declared at: clang/include/clang/AST/DeclContextInternals.h:148
Parameters
¶void removeExternalDecls()
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)
void replaceExternalDecls(
ArrayRef<clang::NamedDecl*> Decls)
Declared at: clang/include/clang/AST/DeclContextInternals.h:161
Parameters
- ArrayRef<clang::NamedDecl*> Decls
¶void setHasExternalDecls()
void setHasExternalDecls()
Declared at: clang/include/clang/AST/DeclContextInternals.h:144
¶~StoredDeclsList()
~StoredDeclsList()
Declared at: clang/include/clang/AST/DeclContextInternals.h:108