/openbsd/gnu/llvm/clang/lib/Index/ |
H A D | IndexDecl.cpp | 94 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 D | IndexTypeSourceInfo.cpp | 265 DC = Parent->getLexicalDeclContext(); in indexTypeLoc() 279 DC = Parent->getLexicalDeclContext(); in indexNestedNameSpecifierLoc()
|
H A D | IndexBody.cpp | 501 DC = Parent->getLexicalDeclContext(); in indexBody()
|
/openbsd/gnu/llvm/clang/lib/Serialization/ |
H A D | ASTCommon.cpp | 460 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 D | ASTWriterDecl.cpp | 304 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 D | ASTReaderDecl.cpp | 1593 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 D | DeclBase.cpp | 269 ? 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 D | Decl.cpp | 101 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 D | ASTImporter.cpp | 315 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 D | Extract.cpp | 52 while (const auto *RD = dyn_cast<CXXRecordDecl>(D->getLexicalDeclContext())) in computeFunctionExtractionLocation()
|
/openbsd/gnu/llvm/lldb/source/Plugins/ExpressionParser/Clang/ |
H A D | CxxModuleHandler.cpp | 287 new_class_template->getLexicalDeclContext()); in tryInstantiateStdTemplate()
|
H A D | ClangASTImporter.cpp | 120 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 D | DeclBase.h | 883 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 D | Decl.h | 1215 if (const DeclContext *DC = getLexicalDeclContext()) in isLocalVarDecl() 1229 const DeclContext *DC = getLexicalDeclContext()->getRedeclContext(); in isFunctionOrMethodVarDecl() 1306 if (getLexicalDeclContext()->getRedeclContext()->isFileContext()) in isFileVarDecl()
|
H A D | DeclTemplate.h | 1943 isa<CXXRecordDecl>(getLexicalDeclContext()); 2800 isa<CXXRecordDecl>(getLexicalDeclContext());
|
/openbsd/gnu/llvm/clang/lib/Sema/ |
H A D | SemaTemplateInstantiateDecl.cpp | 54 !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 D | SemaAccess.cpp | 128 DC = Function->getLexicalDeclContext(); in EffectiveContext() 1490 DC = D->getLexicalDeclContext(); in HandleDelayedAccessCheck() 1961 = dyn_cast<ObjCImplDecl>(FD->getLexicalDeclContext())) { in IsSimplyAccessible()
|
H A D | SemaDecl.cpp | 1701 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 D | SemaLookup.cpp | 358 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 D | SemaTemplateInstantiate.cpp | 205 (!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 D | SemaModule.cpp | 535 for (auto *DC = D->getLexicalDeclContext(); DC; DC = DC->getLexicalParent()) in getEnclosingExportDecl()
|
H A D | SemaDeclCXX.cpp | 470 ? 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 D | ModuleBuilder.cpp | 227 if (!D->getLexicalDeclContext()->isDependentContext()) in HandleInlineFunctionDefinition()
|
/openbsd/gnu/llvm/clang/tools/libclang/ |
H A D | CIndex.cpp | 303 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 D | CXIndexDataConsumer.cpp | 565 LexicalDC = D->getLexicalDeclContext(); in handleDecl()
|