clang 17.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 an array of all the decls that this list represents. | |
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 |
|
inline |
Definition at line 91 of file DeclContextInternals.h.
References Data.
|
inline |
Definition at line 108 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 215 of file DeclContextInternals.h.
References clang::C, Data, clang::NamedDecl::declarationReplaces(), getAsDecl(), getAsList(), clang::Decl::getASTContext(), getLookupResult(), isNull(), and Node.
|
inline |
Definition at line 277 of file DeclContextInternals.h.
|
inline |
Definition at line 132 of file DeclContextInternals.h.
References getAsListAndHasExternal().
Referenced by addOrReplaceDecl(), and getASTContext().
|
inline |
Definition at line 136 of file DeclContextInternals.h.
References getAsListAndHasExternal().
Referenced by addOrReplaceDecl(), and getASTContext().
|
inline |
Definition at line 130 of file DeclContextInternals.h.
References Data.
Referenced by getAsDecl(), getAsList(), and hasExternalDecls().
|
inline |
Definition at line 123 of file DeclContextInternals.h.
References getAsDecl(), getAsList(), clang::Decl::getASTContext(), and isNull().
Referenced by MaybeDeallocList().
|
inline |
Return an array of all the decls that this list represents.
Definition at line 209 of file DeclContextInternals.h.
References Data.
Referenced by addOrReplaceDecl().
|
inline |
Definition at line 140 of file DeclContextInternals.h.
References getAsListAndHasExternal().
|
inline |
Definition at line 121 of file DeclContextInternals.h.
References Data.
Referenced by addOrReplaceDecl(), getASTContext(), MaybeDeallocList(), prependDeclNoReplace(), and remove().
|
inline |
Definition at line 96 of file DeclContextInternals.h.
References clang::C, Data, getASTContext(), and isNull().
Referenced by operator=(), and ~StoredDeclsList().
|
inline |
Definition at line 112 of file DeclContextInternals.h.
References Data, and MaybeDeallocList().
|
inline |
Add a declaration to the list without checking if it replaces anything.
Definition at line 265 of file DeclContextInternals.h.
References clang::C, Data, clang::Decl::getASTContext(), isNull(), and Node.
|
inline |
Definition at line 148 of file DeclContextInternals.h.
References isNull().
|
inline |
Remove any declarations which were imported from an external AST source.
Definition at line 154 of file DeclContextInternals.h.
References Data, and clang::Decl::isFromASTFile().
Definition at line 161 of file DeclContextInternals.h.
References clang::C, Data, clang::for(), clang::Decl::isFromASTFile(), and Node.
|
inline |
Definition at line 144 of file DeclContextInternals.h.
References Data.