| /freebsd-14.2/contrib/llvm-project/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() 714 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 | 518 DC = Parent->getLexicalDeclContext(); in indexBody()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Serialization/ |
| H A D | ASTCommon.cpp | 464 D->getLexicalDeclContext()->isDependentContext() && !isa<TagDecl>(D)) { in needsAnonymousDeclarationNumber() 478 if (D->getLexicalDeclContext()->isFunctionOrMethod()) { in needsAnonymousDeclarationNumber() 489 if (!isa<RecordDecl, ObjCInterfaceDecl>(D->getLexicalDeclContext())) in needsAnonymousDeclarationNumber()
|
| H A D | ASTWriterDecl.cpp | 339 DeclBits.addBit(D->getDeclContext() != D->getLexicalDeclContext()); in VisitDecl() 346 if (D->getDeclContext() != D->getLexicalDeclContext()) in VisitDecl() 347 Record.AddDeclRef(cast_or_null<Decl>(D->getLexicalDeclContext())); in VisitDecl() 427 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitTypedefDecl() 510 if (D->getDeclContext() == D->getLexicalDeclContext() && !D->hasAttrs() && in VisitEnumDecl() 551 if (D->getDeclContext() == D->getLexicalDeclContext() && !D->hasAttrs() && in VisitRecordDecl() 874 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitObjCIvarDecl() 1006 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitFieldDecl() 1407 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitUsingShadowDecl() 1513 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitCXXMethodDecl() [all …]
|
| H A D | ASTReaderDecl.cpp | 1652 VD->getLexicalDeclContext()->isFunctionOrMethod()) in VisitVarDeclImpl() 3334 setAnonymousDeclForMerging(Reader, New->getLexicalDeclContext(), in ~FindExistingResult() 3469 Reader, D->getLexicalDeclContext(), AnonymousDeclNumber)) in findExisting() 3527 auto MergedDCIt = Reader.MergedDeclContexts.find(D->getLexicalDeclContext()); in findExisting()
|
| /freebsd-14.2/contrib/llvm-project/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() 1075 const DeclContext *DC = getLexicalDeclContext(); in isInExportDeclContext() 1568 return (D->getLexicalDeclContext() == this && in containsDecl() 1618 assert(D->getLexicalDeclContext() == this && in removeDecl() 1673 assert(D->getLexicalDeclContext() == this && in addHiddenDecl() 2007 ((!Recoverable || D->getDeclContext() != D->getLexicalDeclContext()) && in makeDeclVisibleInContextWithFlags()
|
| H A D | Decl.cpp | 101 return !getLexicalDeclContext()->Equals(getDeclContext()); in isOutOfLine() 2247 return getLexicalDeclContext()->isExternCContext(); in isInExternCContext() 2251 return getLexicalDeclContext()->isExternCXXContext(); in isInExternCXXContext() 3454 return getLexicalDeclContext()->isExternCContext(); in isInExternCContext() 3458 return getLexicalDeclContext()->isExternCXXContext(); in isInExternCXXContext() 3729 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() 2059 assert(ToDC == ToD->getLexicalDeclContext() && ToDC->containsDecl(ToD)); in ImportDeclContext() 2124 if (FromD->getDeclContext() != FromD->getLexicalDeclContext()) { in ImportDeclContext() 2126 FromD->getLexicalDeclContext()); in ImportDeclContext() 2658 cast<Decl>(D->getLexicalDeclContext()))); in VisitTypedefNameDecl() 3728 if (D->getLexicalDeclContext() == D->getDeclContext()) { in VisitFunctionDecl() 4230 const auto *RD = cast<CXXRecordDecl>(FD->getLexicalDeclContext()); in getFriendCountAndPosition() 5953 TD->getLexicalDeclContext()->isDependentContext(); in VisitClassTemplateDecl()
|
| H A D | JSONNodeDumper.cpp | 121 if (D->getLexicalDeclContext() != D->getDeclContext()) { in Visit()
|
| /freebsd-14.2/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-14.2/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaConcept.cpp | 664 MLTAL = getTemplateInstantiationArgs(FD, FD->getLexicalDeclContext(), in SetupConstraintCheckingTemplateArgumentsAndScope() 743 ND, ND->getLexicalDeclContext(), /*Final=*/false, /*Innermost=*/nullptr, in CalculateTemplateDepthForConstraints() 782 DeclInfo.getDecl(), DeclInfo.getLexicalDeclContext(), /*Final=*/false, in SubstituteConstraintExpressionWithoutSatisfaction() 818 Old->getLexicalDeclContext() != New.getLexicalDeclContext()) { in AreConstraintExpressionsEqual() 1264 CSE->getNamedConcept(), CSE->getNamedConcept()->getLexicalDeclContext(), in substituteParameterMappings()
|
| H A D | SemaTemplateInstantiateDecl.cpp | 55 !OldDecl->getLexicalDeclContext()->isDependentContext()) && in SubstQualifier() 60 ? NewDecl->getLexicalDeclContext() in SubstQualifier() 909 D->getLexicalDeclContext() != Result->getLexicalDeclContext()) in getPreviousDeclForInstantiation() 1753 Inst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitClassTemplateDecl() 1836 Inst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitVarTemplateDecl() 1837 VarInst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitVarTemplateDecl() 2649 Method->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitCXXMethodDecl() 4660 FD, FD->getLexicalDeclContext(), /*Final=*/false, nullptr, in InstantiateDefaultArgument() 5365 NewVar->getLexicalDeclContext()->addHiddenDecl(NewVar); in BuildVariableInstantiation() 5673 Var->getLexicalDeclContext()->isRecord()) { in InstantiateVariableDefinition() [all …]
|
| H A D | SemaAccess.cpp | 128 DC = Function->getLexicalDeclContext(); in EffectiveContext() 1500 DC = D->getLexicalDeclContext(); in HandleDelayedAccessCheck() 1971 = dyn_cast<ObjCImplDecl>(FD->getLexicalDeclContext())) { in IsSimplyAccessible()
|
| H A D | SemaTemplateInstantiate.cpp | 173 return Response::ChangeDecl(InstFromPartialTempl->getLexicalDeclContext()); in HandleClassTemplateSpec() 223 (!Pattern || !Pattern->getLexicalDeclContext()->isFileContext())) { in HandleFunction() 224 return Response::ChangeDecl(Function->getLexicalDeclContext()); in HandleFunction() 228 return Response::ChangeDecl(Function->getLexicalDeclContext()); in HandleFunction() 254 return Response::ChangeDecl(FTD->getLexicalDeclContext()); in HandleFunctionTemplateDecl() 283 return Response::ChangeDecl(Rec->getLexicalDeclContext()); in HandleRecordDecl() 394 R = Response::ChangeDecl(CTD->getLexicalDeclContext()); in getTemplateInstantiationArgs()
|
| H A D | SemaDecl.cpp | 1732 if (!New->getLexicalDeclContext() in CheckRedeclarationExported() 1735 !Old->getLexicalDeclContext() in CheckRedeclarationExported() 1929 D->getLexicalDeclContext()->isDependentContext()) in ShouldWarnIfUnusedFileScopedDecl() 2704 ED->getLexicalDeclContext()->removeDecl(ED); in MergeTypedefNameDecl() 3663 auto *LexDC = NewD->getLexicalDeclContext(); in adjustDeclContextForDeclaratorDecl() 4581 OldVD->getLexicalDeclContext() == NewVD->getLexicalDeclContext(); in mergeTypeWithPrevious() 4749 !(Old->getLexicalDeclContext()->isRecord() && in MergeVarDecl() 4750 !New->getLexicalDeclContext()->isRecord())) { in MergeVarDecl() 10336 DeclContext *TagDC = TD->getLexicalDeclContext(); in ActOnFunctionDeclarator() 11056 if (!D->getLexicalDeclContext()->isDependentContext()) in shouldLinkDependentDeclWithPrevious() [all …]
|
| H A D | SemaLookup.cpp | 358 if (const DeclContext *DC = D->getLexicalDeclContext(); in getContextForScopeMatching() 1563 DeclContext *Context = Entity->getLexicalDeclContext(); in getDefiningModule() 1761 return D->getLexicalDeclContext()->isFileContext(); in hasAcceptableMemberSpecialization() 1810 DeclContext *DC = D->getLexicalDeclContext(); in isAcceptableSlow() 3937 auto *RD = cast<CXXRecordDecl>(D->getLexicalDeclContext()); in ArgumentDependentLookup()
|
| H A D | SemaModule.cpp | 544 for (auto *DC = D->getLexicalDeclContext(); DC; DC = DC->getLexicalParent()) in getEnclosingExportDecl()
|
| H A D | SemaDeclCXX.cpp | 477 ? New->getLexicalDeclContext() in MergeCXXFunctionDecl() 589 !New->getLexicalDeclContext()->isDependentContext()) { in MergeCXXFunctionDecl() 1329 RefVD->setLexicalDeclContext(Src->getLexicalDeclContext()); in checkTupleLikeDecomposition() 1334 RefVD->getLexicalDeclContext()->addHiddenDecl(RefVD); in checkTupleLikeDecomposition() 8820 CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(FD->getLexicalDeclContext()); in CheckExplicitlyDefaultedComparison() 8952 } else if (isa<CXXRecordDecl>(FD->getLexicalDeclContext())) { in CheckExplicitlyDefaultedComparison() 9026 if (isa<CXXRecordDecl>(FD->getLexicalDeclContext())) { in CheckExplicitlyDefaultedComparison() 9852 *this, cast<CXXRecordDecl>(FD->getLexicalDeclContext()), FD, in DiagnoseDeletedDefaultedFunction() 18047 assert(ND->getLexicalDeclContext() == CurContext); in ActOnFriendFunctionDecl() 18254 if (auto const *RD = dyn_cast<CXXRecordDecl>(FD->getLexicalDeclContext())) in SetDeclDefaulted()
|
| /freebsd-14.2/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 | 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()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | DeclBase.h | 918 DeclContext *getLexicalDeclContext() { in getLexicalDeclContext() function 923 const DeclContext *getLexicalDeclContext() const { in getLexicalDeclContext() function 924 return const_cast<Decl*>(this)->getLexicalDeclContext(); in getLexicalDeclContext() 2093 return cast<Decl>(this)->getLexicalDeclContext();
|
| H A D | Decl.h | 1240 if (const DeclContext *DC = getLexicalDeclContext()) in isLocalVarDecl() 1254 const DeclContext *DC = getLexicalDeclContext()->getRedeclContext(); in isFunctionOrMethodVarDecl() 1331 if (getLexicalDeclContext()->getRedeclContext()->isFileContext()) in isFileVarDecl()
|
| H A D | DeclTemplate.h | 1912 isa<CXXRecordDecl>(getLexicalDeclContext()); 2712 isa<CXXRecordDecl>(getLexicalDeclContext());
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | ModuleBuilder.cpp | 227 if (!D->getLexicalDeclContext()->isDependentContext()) in HandleInlineFunctionDefinition()
|