clang 22.0.0git
|
An array of decls optimized for the common case of only containing one entry. More...
#include "clang/AST/DeclContextInternals.h"
Public Member Functions | |
StoredDeclsList ()=default | |
StoredDeclsList (StoredDeclsList &&RHS) | |
void | MaybeDeallocList () |
~StoredDeclsList () | |
StoredDeclsList & | operator= (StoredDeclsList &&RHS) |
bool | isNull () const |
ASTContext & | getASTContext () |
DeclsAndHasExternalTy | getAsListAndHasExternal () const |
NamedDecl * | getAsDecl () const |
DeclListNode * | getAsList () const |
bool | hasExternalDecls () const |
void | setHasExternalDecls () |
void | remove (NamedDecl *D) |
void | removeExternalDecls () |
Remove any declarations which were imported from an external AST source. | |
void | replaceExternalDecls (ArrayRef< NamedDecl * > Decls) |
DeclContext::lookup_result | getLookupResult () const |
Return the list of all the decls. | |
void | addOrReplaceDecl (NamedDecl *D) |
If this is a redeclaration of an existing decl, replace the old one with D. | |
void | prependDeclNoReplace (NamedDecl *D) |
Add a declaration to the list without checking if it replaces anything. | |
LLVM_DUMP_METHOD void | dump () const |
An array of decls optimized for the common case of only containing one entry.
Definition at line 33 of file DeclContextInternals.h.
|
default |
Referenced by operator=(), and StoredDeclsList().
|
inline |
Definition at line 103 of file DeclContextInternals.h.
References StoredDeclsList().
|
inline |
Definition at line 120 of file DeclContextInternals.h.
References MaybeDeallocList().
|
inline |
If this is a redeclaration of an existing decl, replace the old one with D.
Otherwise, append D.
Definition at line 221 of file DeclContextInternals.h.
References clang::C, clang::NamedDecl::declarationReplaces(), getAsDecl(), getAsList(), clang::Decl::getASTContext(), getLookupResult(), and isNull().
|
inline |
Definition at line 283 of file DeclContextInternals.h.
References clang::cast().
|
inline |
Definition at line 144 of file DeclContextInternals.h.
References getAsListAndHasExternal().
Referenced by addOrReplaceDecl(), and getASTContext().
|
inline |
Definition at line 148 of file DeclContextInternals.h.
References getAsListAndHasExternal().
Referenced by addOrReplaceDecl(), and getASTContext().
|
inline |
Definition at line 142 of file DeclContextInternals.h.
Referenced by getAsDecl(), getAsList(), and hasExternalDecls().
|
inline |
Definition at line 135 of file DeclContextInternals.h.
References getAsDecl(), getAsList(), clang::Decl::getASTContext(), and isNull().
Referenced by MaybeDeallocList().
|
inline |
Return the list of all the decls.
Definition at line 215 of file DeclContextInternals.h.
Referenced by addOrReplaceDecl(), and clang::ExternalASTSource::SetExternalVisibleDeclsForName().
|
inline |
Definition at line 152 of file DeclContextInternals.h.
References getAsListAndHasExternal().
|
inline |
Definition at line 133 of file DeclContextInternals.h.
Referenced by addOrReplaceDecl(), getASTContext(), MaybeDeallocList(), prependDeclNoReplace(), remove(), and clang::DeclContext::removeDecl().
|
inline |
Definition at line 108 of file DeclContextInternals.h.
References clang::C, getASTContext(), and isNull().
Referenced by operator=(), and ~StoredDeclsList().
|
inline |
Definition at line 124 of file DeclContextInternals.h.
References MaybeDeallocList(), and StoredDeclsList().
|
inline |
Add a declaration to the list without checking if it replaces anything.
Definition at line 271 of file DeclContextInternals.h.
References clang::C, clang::Decl::getASTContext(), and isNull().
|
inline |
Definition at line 160 of file DeclContextInternals.h.
References isNull().
Referenced by clang::DeclContext::removeDecl().
|
inline |
Remove any declarations which were imported from an external AST source.
Definition at line 166 of file DeclContextInternals.h.
References clang::Decl::isFromASTFile().
Definition at line 173 of file DeclContextInternals.h.
References clang::C, clang::cast(), clang::NamedDecl::declarationReplaces(), clang::Decl::getModuleOwnershipKind(), and clang::Decl::isFromASTFile().
Referenced by clang::ExternalASTSource::SetExternalVisibleDeclsForName().
|
inline |
Definition at line 156 of file DeclContextInternals.h.