/freebsd/contrib/llvm-project/clang/lib/Index/ |
H A D | IndexDecl.cpp | 94 Parent->getLexicalDeclContext(), in handleDeclarator() 210 dyn_cast<ClassTemplateSpecializationDecl>(D->getLexicalDeclContext()); in gatherTemplatePseudoOverrides() 293 handleTemplateArgumentLoc(Arg, D, D->getLexicalDeclContext()); in VisitFunctionDecl() 375 Relations, D->getLexicalDeclContext()); in VisitTagDecl() 525 if (MD->getLexicalDeclContext() == D->getLexicalDeclContext()) in VisitObjCPropertyDecl() 528 if (MD->getLexicalDeclContext() == D->getLexicalDeclContext()) in VisitObjCPropertyDecl() 533 D->getLexicalDeclContext(), false, true); in VisitObjCPropertyDecl() 602 D->getLexicalDeclContext()); in VisitNamespaceAliasDecl() 612 D->getLexicalDeclContext()); in VisitUsingDecl() 621 D->getLexicalDeclContext(), SymbolRoleSet()); in VisitUsingDecl() [all …]
|
H A D | IndexTypeSourceInfo.cpp | 265 DC = Parent->getLexicalDeclContext(); in indexTypeLoc() 279 DC = Parent->getLexicalDeclContext(); in indexNestedNameSpecifierLoc()
|
H A D | IndexBody.cpp | 518 DC = Parent->getLexicalDeclContext(); in indexBody()
|
/freebsd/contrib/llvm-project/clang/lib/Serialization/ |
H A D | ASTCommon.cpp | 472 D->getLexicalDeclContext()->isDependentContext() && !isa<TagDecl>(D)) { in needsAnonymousDeclarationNumber() 486 if (D->getLexicalDeclContext()->isFunctionOrMethod()) { in needsAnonymousDeclarationNumber() 497 if (!isa<RecordDecl, ObjCInterfaceDecl>(D->getLexicalDeclContext())) in needsAnonymousDeclarationNumber()
|
H A D | ASTWriterDecl.cpp | 378 DeclBits.addBit(D->getDeclContext() != D->getLexicalDeclContext()); in VisitDecl() 385 if (D->getDeclContext() != D->getLexicalDeclContext()) in VisitDecl() 386 Record.AddDeclRef(cast_or_null<Decl>(D->getLexicalDeclContext())); in VisitDecl() 466 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitTypedefDecl() 545 if (D->getDeclContext() == D->getLexicalDeclContext() && !D->hasAttrs() && in VisitEnumDecl() 586 if (D->getDeclContext() == D->getLexicalDeclContext() && !D->hasAttrs() && in VisitRecordDecl() 912 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitObjCIvarDecl() 1044 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitFieldDecl() 1188 if (D->getDeclContext() == D->getLexicalDeclContext() && !D->hasAttrs() && in VisitVarDecl() 1237 if (D->getDeclContext() == D->getLexicalDeclContext() && !D->hasAttrs() && in VisitParmVarDecl() [all …]
|
H A D | ASTReaderDecl.cpp | 1644 VD->getLexicalDeclContext()->isFunctionOrMethod()) in VisitVarDeclImpl() 3309 setAnonymousDeclForMerging(Reader, New->getLexicalDeclContext(), in ~FindExistingResult() 3444 Reader, D->getLexicalDeclContext(), AnonymousDeclNumber)) in findExisting() 3502 auto MergedDCIt = Reader.MergedDeclContexts.find(D->getLexicalDeclContext()); in findExisting()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | DeclBase.cpp | 291 ? getLexicalDeclContext() : getDeclContext(); in isTemplated() 313 getFriendObjectKind() ? getLexicalDeclContext() : getDeclContext(); in getTemplateDepth() 318 for (const DeclContext *DC = LexicalParent ? getLexicalDeclContext() in getParentFunctionOrMethod() 363 if (DC == getLexicalDeclContext()) in setLexicalDeclContext() 399 const DeclContext *LDC = getLexicalDeclContext(); in isInLocalScopeForInstantiation() 1114 const DeclContext *DC = getLexicalDeclContext(); in isInExportDeclContext() 1632 return (D->getLexicalDeclContext() == this && in containsDecl() 1682 assert(D->getLexicalDeclContext() == this && in removeDecl() 1737 assert(D->getLexicalDeclContext() == this && in addHiddenDecl() 2071 ((!Recoverable || D->getDeclContext() != D->getLexicalDeclContext()) && in makeDeclVisibleInContextWithFlags()
|
H A D | Decl.cpp | 101 return !getLexicalDeclContext()->Equals(getDeclContext()); in isOutOfLine() 2232 return getLexicalDeclContext()->isExternCContext(); in isInExternCContext() 2236 return getLexicalDeclContext()->isExternCXXContext(); in isInExternCXXContext() 3491 return getLexicalDeclContext()->isExternCContext(); in isInExternCContext() 3495 return getLexicalDeclContext()->isExternCXXContext(); in isInExternCXXContext() 3779 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() 2107 assert(ToDC == ToD->getLexicalDeclContext() && ToDC->containsDecl(ToD)); in ImportDeclContext() 2172 if (FromD->getDeclContext() != FromD->getLexicalDeclContext()) { in ImportDeclContext() 2174 FromD->getLexicalDeclContext()); in ImportDeclContext() 2706 cast<Decl>(D->getLexicalDeclContext()))); in VisitTypedefNameDecl() 3795 if (D->getLexicalDeclContext() == D->getDeclContext()) { in VisitFunctionDecl() 4310 const auto *RD = cast<CXXRecordDecl>(FD->getLexicalDeclContext()); in getFriendCountAndPosition() 6039 TD->getLexicalDeclContext()->isDependentContext(); in VisitClassTemplateDecl()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | BugSuppression.cpp | 158 dyn_cast_or_null<Decl>(DeclWithIssue->getLexicalDeclContext()); in isSuppressed()
|
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/ |
H A D | Extract.cpp | 52 while (const auto *RD = dyn_cast<CXXRecordDecl>(D->getLexicalDeclContext())) in computeFunctionExtractionLocation()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaConcept.cpp | 825 getTemplateInstantiationArgs(FD, FD->getLexicalDeclContext(), in SetupConstraintCheckingTemplateArgumentsAndScope() 908 ND, ND->getLexicalDeclContext(), /*Final=*/false, in CalculateTemplateDepthForConstraints() 948 DeclInfo.getDecl(), DeclInfo.getLexicalDeclContext(), /*Final=*/false, in SubstituteConstraintExpressionWithoutSatisfaction() 1027 Old->getLexicalDeclContext() != New.getLexicalDeclContext()) { in AreConstraintExpressionsEqual() 1504 CSE->getNamedConcept(), CSE->getNamedConcept()->getLexicalDeclContext(), in substituteParameterMappings()
|
H A D | SemaTemplateInstantiateDecl.cpp | 60 !OldDecl->getLexicalDeclContext()->isDependentContext()) && in SubstQualifier() 65 ? NewDecl->getLexicalDeclContext() in SubstQualifier() 66 : OldDecl->getLexicalDeclContext())); in SubstQualifier() 934 D->getLexicalDeclContext() != Result->getLexicalDeclContext()) in getPreviousDeclForInstantiation() 1792 Inst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitClassTemplateDecl() 1793 RecordInst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitClassTemplateDecl() 1875 Inst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitVarTemplateDecl() 1876 VarInst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitVarTemplateDecl() 2666 FunctionTemplate->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitCXXMethodDecl() 2692 Method->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitCXXMethodDecl() [all …]
|
H A D | SemaAccess.cpp | 126 DC = Function->getLexicalDeclContext(); in EffectiveContext() 1518 DC = D->getLexicalDeclContext(); in HandleDelayedAccessCheck() 1956 = dyn_cast<ObjCImplDecl>(FD->getLexicalDeclContext())) { in IsSimplyAccessible()
|
H A D | SemaTemplateInstantiate.cpp | 264 return Response::ChangeDecl(InstFromPartialTempl->getLexicalDeclContext()); in HandleClassTemplateSpec() 323 (!Pattern || !Pattern->getLexicalDeclContext()->isFileContext())) { in HandleFunction() 324 return Response::ChangeDecl(Function->getLexicalDeclContext()); in HandleFunction() 328 return Response::ChangeDecl(Function->getLexicalDeclContext()); in HandleFunction() 382 return Response::ChangeDecl(FTD->getLexicalDeclContext()); in HandleFunctionTemplateDecl() 411 return Response::ChangeDecl(Rec->getLexicalDeclContext()); in HandleRecordDecl() 523 R = Response::ChangeDecl(CTD->getLexicalDeclContext()); in getTemplateInstantiationArgs()
|
H A D | SemaDecl.cpp | 1542 DeclContext *IDC = (*I)->getLexicalDeclContext()->getRedeclContext(); in PushOnScopeChains() 1661 if (!New->getLexicalDeclContext() in CheckRedeclarationExported() 1664 !Old->getLexicalDeclContext() in CheckRedeclarationExported() 1837 D->getLexicalDeclContext()->isDependentContext()) in ShouldWarnIfUnusedFileScopedDecl() 2559 ED->getLexicalDeclContext()->removeDecl(ED); in MergeTypedefNameDecl() 3520 auto *LexDC = NewD->getLexicalDeclContext(); in adjustDeclContextForDeclaratorDecl() 3927 if (!isFriend && NewMethod->getLexicalDeclContext()->isRecord() && in MergeFunctionDecl() 4449 (!OldVD->getLexicalDeclContext()->isFunctionOrMethod() && in mergeTypeWithPrevious() 4450 !NewVD->getLexicalDeclContext()->isFunctionOrMethod()); in mergeTypeWithPrevious() 4454 return !OldVD->getLexicalDeclContext()->isFunctionOrMethod() || in mergeTypeWithPrevious() [all …]
|
H A D | SemaTemplateDeductionGuide.cpp | 872 if (F->getLexicalDeclContext()->getDeclKind() == in buildAssociatedConstraints() 875 F, F->getLexicalDeclContext(), in buildAssociatedConstraints()
|
H A D | SemaLookup.cpp | 360 if (const DeclContext *DC = D->getLexicalDeclContext(); in getContextForScopeMatching() 1575 DeclContext *Context = Entity->getLexicalDeclContext(); in getDefiningModule() 1782 return D->getLexicalDeclContext()->isFileContext(); in hasAcceptableMemberSpecialization() 1831 DeclContext *DC = D->getLexicalDeclContext(); in isAcceptableSlow() 3871 auto *RD = cast<CXXRecordDecl>(D->getLexicalDeclContext()); in ArgumentDependentLookup()
|
H A D | SemaModule.cpp | 634 for (auto *DC = D->getLexicalDeclContext(); DC; DC = DC->getLexicalParent()) in getEnclosingExportDecl()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
H A D | CxxModuleHandler.cpp | 288 new_class_template->getLexicalDeclContext()); in tryInstantiateStdTemplate()
|
H A D | ClangASTImporter.cpp | 123 m_backups[decl] = {decl->getDeclContext(), decl->getLexicalDeclContext()}; in OverrideOne() 150 !ChainPassesThrough(decl, base, &clang::Decl::getLexicalDeclContext, in GetEscapedChild() 193 for (DeclContext *decl_context = decl->getLexicalDeclContext(); in OverrideAllDeclsFromContainingFunction()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | DeclBase.h | 907 DeclContext *getLexicalDeclContext() { in getLexicalDeclContext() function 912 const DeclContext *getLexicalDeclContext() const { in getLexicalDeclContext() function 913 return const_cast<Decl*>(this)->getLexicalDeclContext(); in getLexicalDeclContext() 2106 return cast<Decl>(this)->getLexicalDeclContext();
|
H A D | Decl.h | 1204 if (const DeclContext *DC = getLexicalDeclContext()) in isLocalVarDecl() 1218 const DeclContext *DC = getLexicalDeclContext()->getRedeclContext(); in isFunctionOrMethodVarDecl() 1295 if (getLexicalDeclContext()->getRedeclContext()->isFileContext()) in isFileVarDecl()
|
H A D | DeclTemplate.h | 1913 isa<CXXRecordDecl>(getLexicalDeclContext()); 2682 isa<CXXRecordDecl>(getLexicalDeclContext());
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | ModuleBuilder.cpp | 227 if (!D->getLexicalDeclContext()->isDependentContext()) in HandleInlineFunctionDefinition()
|