Home | History | Annotate | Download | only in AST

Lines Matching refs:DeclContext

10 // This file implements the Decl and DeclContext classes.
90 const char *DeclContext::getDeclKindName() const {
166 const DeclContext *Decl::getParentFunctionOrMethod() const {
167 for (const DeclContext *DC = getDeclContext();
208 void Decl::setDeclContext(DeclContext *DC) {
212 void Decl::setLexicalDeclContext(DeclContext *DC) {
223 void Decl::setDeclContextsImpl(DeclContext *SemaDC, DeclContext *LexicalDC,
236 const DeclContext *DC = getDeclContext();
250 DeclContext *DC = getDeclContext();
620 Decl *Decl::castFromDeclContext (const DeclContext *D) {
626 return static_cast<NAME##Decl*>(const_cast<DeclContext*>(D));
633 return static_cast<NAME##Decl*>(const_cast<DeclContext*>(D));
635 llvm_unreachable("a decl that inherits DeclContext isn't handled");
639 DeclContext *Decl::castToDeclContext(const Decl *D) {
654 llvm_unreachable("a decl that inherits DeclContext isn't handled");
690 // as DeclContext (?).
703 DeclContext *Decl::getNonClosureContext() {
707 DeclContext *DeclContext::getNonClosureAncestor() {
708 DeclContext *DC = this;
721 // DeclContext Implementation
724 bool DeclContext::classof(const Decl *D) {
742 DeclContext::~DeclContext() { }
750 DeclContext *DeclContext::getLookupParent() {
760 bool DeclContext::isInlineNamespace() const {
765 bool DeclContext::isDependentContext() const {
793 bool DeclContext::isTransparentContext() const {
802 bool DeclContext::isExternCContext() const {
803 const DeclContext *DC = this;
813 bool DeclContext::isExternCXXContext() const {
814 const DeclContext *DC = this;
824 bool DeclContext::Encloses(const DeclContext *DC) const {
834 DeclContext *DeclContext::getPrimaryContext() {
839 // There is only one DeclContext for these entities.
891 "Unknown DeclContext kind");
897 DeclContext::collectAllContexts(SmallVectorImpl<DeclContext *> &Contexts){
914 DeclContext::BuildDeclChain(ArrayRef<Decl*> Decls,
938 void DeclContext::reconcileExternalVisibleStorage() {
953 DeclContext::LoadLexicalDeclsFromExternalStorage() const {
957 // Notify that we have a DeclContext that is initializing.
992 DeclContext::lookup_result
993 ExternalASTSource::SetNoExternalVisibleDeclsForName(const DeclContext *DC,
1003 return DeclContext::lookup_result();
1006 DeclContext::lookup_result
1007 ExternalASTSource::SetExternalVisibleDeclsForName(const DeclContext *DC,
1028 DeclContext::decl_iterator DeclContext::noload_decls_begin() const {
1032 DeclContext::decl_iterator DeclContext::decls_begin() const {
1039 bool DeclContext::decls_empty() const {
1046 void DeclContext::removeDecl(Decl *D) {
1089 void DeclContext::addHiddenDecl(Decl *D) {
1093 "Decl already inserted into a DeclContext");
1115 void DeclContext::addDecl(Decl *D) {
1123 void DeclContext::addDeclInternal(Decl *D) {
1158 /// declarations in this DeclContext (and any other contexts linked
1160 StoredDeclsMap *DeclContext::buildLookup() {
1167 SmallVector<DeclContext *, 2> Contexts;
1180 /// DeclContext, a DeclContext linked to it, or a transparent context
1182 void DeclContext::buildLookupImpl(DeclContext *DCtx) {
1197 if (DeclContext *InnerCtx = dyn_cast<DeclContext>(D))
1203 DeclContext::lookup_result
1204 DeclContext::lookup(DeclarationName Name) {
1208 DeclContext *PrimaryContext = getPrimaryContext();
1256 void DeclContext::localUncachedLookup(DeclarationName Name,
1290 DeclContext *DeclContext::getRedeclContext() {
1291 DeclContext *Ctx = this;
1298 DeclContext *DeclContext::getEnclosingNamespaceContext() {
1299 DeclContext *Ctx = this;
1306 bool DeclContext::InEnclosingNamespaceSetOf(const DeclContext *O) const {
1324 void DeclContext::makeDeclVisibleInContext(NamedDecl *D) {
1325 DeclContext *PrimaryDC = this->getPrimaryContext();
1326 DeclContext *DeclDC = D->getDeclContext()->getPrimaryContext();
1332 void DeclContext::makeDeclVisibleInContextWithFlags(NamedDecl *D, bool Internal,
1385 void DeclContext::makeDeclVisibleInContextImpl(NamedDecl *D, bool Internal) {
1422 DeclContext::udir_iterator_range
1423 DeclContext::getUsingDirectives() const {
1435 StoredDeclsMap *DeclContext::CreateStoredDeclsMap(ASTContext &C) const {
1475 DeclContext *Parent,