Home
last modified time | relevance | path

Searched refs:getLexicalDeclContext (Results 1 – 25 of 39) sorted by relevance

12

/openbsd/gnu/llvm/clang/lib/Index/
H A DIndexDecl.cpp94 Parent->getLexicalDeclContext(), in handleDeclarator()
293 handleTemplateArgumentLoc(Arg, D, D->getLexicalDeclContext()); in VisitFunctionDecl()
525 if (MD->getLexicalDeclContext() == D->getLexicalDeclContext()) in VisitObjCPropertyDecl()
528 if (MD->getLexicalDeclContext() == D->getLexicalDeclContext()) in VisitObjCPropertyDecl()
602 D->getLexicalDeclContext()); in VisitNamespaceAliasDecl()
612 D->getLexicalDeclContext()); in VisitUsingDecl()
638 D->getLexicalDeclContext(), in VisitUsingDirectiveDecl()
647 D->getLexicalDeclContext()); in VisitUnresolvedUsingValueDecl()
678 D->getLexicalDeclContext()); in VisitClassTemplateSpecializationDecl()
713 TP->getLexicalDeclContext()); in indexTemplateParameters()
[all …]
H A DIndexTypeSourceInfo.cpp265 DC = Parent->getLexicalDeclContext(); in indexTypeLoc()
279 DC = Parent->getLexicalDeclContext(); in indexNestedNameSpecifierLoc()
H A DIndexBody.cpp501 DC = Parent->getLexicalDeclContext(); in indexBody()
/openbsd/gnu/llvm/clang/lib/Serialization/
H A DASTCommon.cpp460 D->getLexicalDeclContext()->isDependentContext() && !isa<TagDecl>(D)) { in needsAnonymousDeclarationNumber()
474 if (D->getLexicalDeclContext()->isFunctionOrMethod()) { in needsAnonymousDeclarationNumber()
486 if (!isa<RecordDecl, ObjCInterfaceDecl>(D->getLexicalDeclContext())) in needsAnonymousDeclarationNumber()
H A DASTWriterDecl.cpp304 if (D->getDeclContext() != D->getLexicalDeclContext()) in VisitDecl()
305 Record.AddDeclRef(cast_or_null<Decl>(D->getLexicalDeclContext())); in VisitDecl()
393 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitTypedefDecl()
458 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitEnumDecl()
499 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitRecordDecl()
815 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitObjCIvarDecl()
950 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitFieldDecl()
1079 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitVarDecl()
1127 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitParmVarDecl()
1426 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitCXXMethodDecl()
H A DASTReaderDecl.cpp1593 VD->getLexicalDeclContext()->isFunctionOrMethod()) in VisitVarDeclImpl()
3169 setAnonymousDeclForMerging(Reader, New->getLexicalDeclContext(), in ~FindExistingResult()
3304 Reader, D->getLexicalDeclContext(), AnonymousDeclNumber)) in findExisting()
3359 auto MergedDCIt = Reader.MergedDeclContexts.find(D->getLexicalDeclContext()); in findExisting()
/openbsd/gnu/llvm/clang/lib/AST/
H A DDeclBase.cpp269 ? getLexicalDeclContext() : getDeclContext(); in isTemplated()
291 getFriendObjectKind() ? getLexicalDeclContext() : getDeclContext(); in getTemplateDepth()
296 for (const DeclContext *DC = LexicalParent ? getLexicalDeclContext() in getParentFunctionOrMethod()
341 if (DC == getLexicalDeclContext()) in setLexicalDeclContext()
377 const DeclContext *LDC = getLexicalDeclContext(); in isInLocalScopeForInstantiation()
1017 const DeclContext *DC = getLexicalDeclContext(); in isInExportDeclContext()
1477 return (D->getLexicalDeclContext() == this && in containsDecl()
1527 assert(D->getLexicalDeclContext() == this && in removeDecl()
1582 assert(D->getLexicalDeclContext() == this && in addHiddenDecl()
1916 ((!Recoverable || D->getDeclContext() != D->getLexicalDeclContext()) && in makeDeclVisibleInContextWithFlags()
H A DDecl.cpp101 return !getLexicalDeclContext()->Equals(getDeclContext()); in isOutOfLine()
2187 return getLexicalDeclContext()->isExternCContext(); in isInExternCContext()
2191 return getLexicalDeclContext()->isExternCXXContext(); in isInExternCXXContext()
3322 return getLexicalDeclContext()->isExternCContext(); in isInExternCContext()
3326 return getLexicalDeclContext()->isExternCXXContext(); in isInExternCXXContext()
3562 if (!Redecl->getLexicalDeclContext()->isTranslationUnit()) in RedeclForcesDefC99()
H A DASTImporter.cpp315 ToD->getLexicalDeclContext()->addDeclInternal(ToD); in addDeclToContexts()
320 DeclContext *FromLexicalDC = FromD->getLexicalDeclContext(); in addDeclToContexts()
322 DeclContext *ToLexicalDC = ToD->getLexicalDeclContext(); in addDeclToContexts()
1940 assert(ToDC == ToD->getLexicalDeclContext() && ToDC->containsDecl(ToD)); in ImportDeclContext()
1961 if (FromD->getDeclContext() != FromD->getLexicalDeclContext()) { in ImportDeclContext()
1963 FromD->getLexicalDeclContext()); in ImportDeclContext()
2493 cast<Decl>(D->getLexicalDeclContext()))); in VisitTypedefNameDecl()
3514 if (D->getLexicalDeclContext() == D->getDeclContext()) { in VisitFunctionDecl()
3984 const auto *RD = cast<CXXRecordDecl>(FD->getLexicalDeclContext()); in getFriendCountAndPosition()
/openbsd/gnu/llvm/clang/lib/Tooling/Refactoring/Extract/
H A DExtract.cpp52 while (const auto *RD = dyn_cast<CXXRecordDecl>(D->getLexicalDeclContext())) in computeFunctionExtractionLocation()
/openbsd/gnu/llvm/lldb/source/Plugins/ExpressionParser/Clang/
H A DCxxModuleHandler.cpp287 new_class_template->getLexicalDeclContext()); in tryInstantiateStdTemplate()
H A DClangASTImporter.cpp120 m_backups[decl] = {decl->getDeclContext(), decl->getLexicalDeclContext()}; in OverrideOne()
147 !ChainPassesThrough(decl, base, &clang::Decl::getLexicalDeclContext, in GetEscapedChild()
190 for (DeclContext *decl_context = decl->getLexicalDeclContext(); in OverrideAllDeclsFromContainingFunction()
/openbsd/gnu/llvm/clang/include/clang/AST/
H A DDeclBase.h883 DeclContext *getLexicalDeclContext() { in getLexicalDeclContext() function
888 const DeclContext *getLexicalDeclContext() const { in getLexicalDeclContext() function
889 return const_cast<Decl*>(this)->getLexicalDeclContext(); in getLexicalDeclContext()
1944 return cast<Decl>(this)->getLexicalDeclContext();
H A DDecl.h1215 if (const DeclContext *DC = getLexicalDeclContext()) in isLocalVarDecl()
1229 const DeclContext *DC = getLexicalDeclContext()->getRedeclContext(); in isFunctionOrMethodVarDecl()
1306 if (getLexicalDeclContext()->getRedeclContext()->isFileContext()) in isFileVarDecl()
H A DDeclTemplate.h1943 isa<CXXRecordDecl>(getLexicalDeclContext());
2800 isa<CXXRecordDecl>(getLexicalDeclContext());
/openbsd/gnu/llvm/clang/lib/Sema/
H A DSemaTemplateInstantiateDecl.cpp54 !OldDecl->getLexicalDeclContext()->isDependentContext()) && in SubstQualifier()
59 ? NewDecl->getLexicalDeclContext() in SubstQualifier()
869 D->getLexicalDeclContext() != Result->getLexicalDeclContext()) in getPreviousDeclForInstantiation()
1709 Inst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitClassTemplateDecl()
1710 RecordInst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitClassTemplateDecl()
1792 Inst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitVarTemplateDecl()
1793 VarInst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitVarTemplateDecl()
2592 Method->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitCXXMethodDecl()
5263 NewVar->getLexicalDeclContext()->addHiddenDecl(NewVar); in BuildVariableInstantiation()
5571 Var->getLexicalDeclContext()->isRecord()) { in InstantiateVariableDefinition()
[all …]
H A DSemaAccess.cpp128 DC = Function->getLexicalDeclContext(); in EffectiveContext()
1490 DC = D->getLexicalDeclContext(); in HandleDelayedAccessCheck()
1961 = dyn_cast<ObjCImplDecl>(FD->getLexicalDeclContext())) { in IsSimplyAccessible()
H A DSemaDecl.cpp1701 if (!New->getLexicalDeclContext() in CheckRedeclarationExported()
1704 !Old->getLexicalDeclContext() in CheckRedeclarationExported()
1894 D->getLexicalDeclContext()->isDependentContext()) in ShouldWarnIfUnusedFileScopedDecl()
2652 ED->getLexicalDeclContext()->removeDecl(ED); in MergeTypedefNameDecl()
3591 auto *LexDC = NewD->getLexicalDeclContext(); in adjustDeclContextForDeclaratorDecl()
4499 OldVD->getLexicalDeclContext() == NewVD->getLexicalDeclContext(); in mergeTypeWithPrevious()
4667 !(Old->getLexicalDeclContext()->isRecord() && in MergeVarDecl()
4668 !New->getLexicalDeclContext()->isRecord())) { in MergeVarDecl()
10066 DeclContext *TagDC = TD->getLexicalDeclContext(); in ActOnFunctionDeclarator()
10822 if (!D->getLexicalDeclContext()->isDependentContext()) in shouldLinkDependentDeclWithPrevious()
[all …]
H A DSemaLookup.cpp358 DeclContext *DC = D->getLexicalDeclContext(); in getContextForScopeMatching()
1550 DeclContext *Context = Entity->getLexicalDeclContext(); in getDefiningModule()
1748 return D->getLexicalDeclContext()->isFileContext(); in hasAcceptableMemberSpecialization()
1797 DeclContext *DC = D->getLexicalDeclContext(); in isAcceptableSlow()
3918 auto *RD = cast<CXXRecordDecl>(D->getLexicalDeclContext()); in ArgumentDependentLookup()
H A DSemaTemplateInstantiate.cpp205 (!Pattern || !Pattern->getLexicalDeclContext()->isFileContext())) { in HandleFunction()
206 return Response::ChangeDecl(Function->getLexicalDeclContext()); in HandleFunction()
237 return Response::ChangeDecl(Rec->getLexicalDeclContext()); in HandleRecordDecl()
932 cast<CXXRecordDecl>(FD->getLexicalDeclContext())); in PrintInstantiationStack()
H A DSemaModule.cpp535 for (auto *DC = D->getLexicalDeclContext(); DC; DC = DC->getLexicalParent()) in getEnclosingExportDecl()
H A DSemaDeclCXX.cpp470 ? New->getLexicalDeclContext() in MergeCXXFunctionDecl()
582 !New->getLexicalDeclContext()->isDependentContext()) { in MergeCXXFunctionDecl()
1298 RefVD->setLexicalDeclContext(Src->getLexicalDeclContext()); in checkTupleLikeDecomposition()
1303 RefVD->getLexicalDeclContext()->addHiddenDecl(RefVD); in checkTupleLikeDecomposition()
8579 CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(FD->getLexicalDeclContext()); in CheckExplicitlyDefaultedComparison()
8679 } else if (isa<CXXRecordDecl>(FD->getLexicalDeclContext())) { in CheckExplicitlyDefaultedComparison()
8753 if (isa<CXXRecordDecl>(FD->getLexicalDeclContext())) { in CheckExplicitlyDefaultedComparison()
9555 *this, cast<CXXRecordDecl>(FD->getLexicalDeclContext()), FD, in DiagnoseDeletedDefaultedFunction()
17404 assert(ND->getLexicalDeclContext() == CurContext); in ActOnFriendFunctionDecl()
17579 if (auto const *RD = dyn_cast<CXXRecordDecl>(FD->getLexicalDeclContext())) in SetDeclDefaulted()
/openbsd/gnu/llvm/clang/lib/CodeGen/
H A DModuleBuilder.cpp227 if (!D->getLexicalDeclContext()->isDependentContext()) in HandleInlineFunctionDefinition()
/openbsd/gnu/llvm/clang/tools/libclang/
H A DCIndex.cpp303 for (DeclContext *DeclDC = D->getLexicalDeclContext(); DeclDC; in isInLexicalContext()
388 ? (*DIt)->getLexicalDeclContext() in visitDeclsFromFileRegion()
389 : (*(DIt - 1))->getLexicalDeclContext(); in visitDeclsFromFileRegion()
402 DC = D->getLexicalDeclContext(); in visitDeclsFromFileRegion()
636 if (D->getLexicalDeclContext() != DC) in VisitDeclContext()
1056 if (!SubDecl || SubDecl->getLexicalDeclContext() != D || in VisitObjCContainerDecl()
1144 if (MD->isPropertyAccessor() && MD->getLexicalDeclContext() == CDecl) in VisitObjCPropertyDecl()
1149 if (MD->isPropertyAccessor() && MD->getLexicalDeclContext() == CDecl) in VisitObjCPropertyDecl()
8519 const DeclContext *DC = D->getLexicalDeclContext(); in clang_getCursorLexicalParent()
H A DCXIndexDataConsumer.cpp565 LexicalDC = D->getLexicalDeclContext(); in handleDecl()

12