Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/Index/
H A DIndexDecl.cpp94 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 DIndexTypeSourceInfo.cpp247 DC = Parent->getLexicalDeclContext(); in indexTypeLoc()
261 DC = Parent->getLexicalDeclContext(); in indexNestedNameSpecifierLoc()
H A DIndexBody.cpp523 DC = Parent->getLexicalDeclContext(); in indexBody()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTCommon.cpp482 D->getLexicalDeclContext()->isDependentContext() && !isa<TagDecl>(D)) { in needsAnonymousDeclarationNumber()
496 if (D->getLexicalDeclContext()->isFunctionOrMethod()) { in needsAnonymousDeclarationNumber()
507 if (!isa<RecordDecl, ObjCInterfaceDecl>(D->getLexicalDeclContext())) in needsAnonymousDeclarationNumber()
H A DASTWriterDecl.cpp531 DeclBits.addBit(D->getDeclContext() != D->getLexicalDeclContext()); in VisitDecl()
538 if (D->getDeclContext() != D->getLexicalDeclContext()) in VisitDecl()
539 Record.AddDeclRef(cast_or_null<Decl>(D->getLexicalDeclContext())); in VisitDecl()
619 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitTypedefDecl()
698 if (D->getDeclContext() == D->getLexicalDeclContext() && !D->hasAttrs() && in VisitEnumDecl()
740 if (D->getDeclContext() == D->getLexicalDeclContext() && !D->hasAttrs() && in VisitRecordDecl()
1085 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitObjCIvarDecl()
1218 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitFieldDecl()
1351 if (D->getDeclContext() == D->getLexicalDeclContext() && !D->hasAttrs() && in VisitVarDecl()
1401 if (D->getDeclContext() == D->getLexicalDeclContext() && !D->hasAttrs() && in VisitParmVarDecl()
[all …]
H A DASTReaderDecl.cpp1653 VD->getLexicalDeclContext()->isFunctionOrMethod()) in VisitVarDeclImpl()
3357 setAnonymousDeclForMerging(Reader, New->getLexicalDeclContext(), in ~FindExistingResult()
3492 Reader, D->getLexicalDeclContext(), AnonymousDeclNumber)) in findExisting()
3550 auto MergedDCIt = Reader.MergedDeclContexts.find(D->getLexicalDeclContext()); in findExisting()
3774 if (!Previous->getLexicalDeclContext() in checkMultipleDefinitionInNamedModules()
3777 !D->getLexicalDeclContext()->getNonTransparentContext()->isFileContext()) in checkMultipleDefinitionInNamedModules()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclBase.cpp297 ? getLexicalDeclContext() : getDeclContext(); in isTemplated()
319 getFriendObjectKind() ? getLexicalDeclContext() : getDeclContext(); in getTemplateDepth()
324 for (const DeclContext *DC = LexicalParent ? getLexicalDeclContext() in getParentFunctionOrMethod()
369 if (DC == getLexicalDeclContext()) in setLexicalDeclContext()
405 const DeclContext *LDC = getLexicalDeclContext(); in isInLocalScopeForInstantiation()
1127 const DeclContext *DC = getLexicalDeclContext(); in isInExportDeclContext()
1679 return (D->getLexicalDeclContext() == this && in containsDecl()
1729 assert(D->getLexicalDeclContext() == this && in removeDecl()
1784 assert(D->getLexicalDeclContext() == this && in addHiddenDecl()
2125 ((!Recoverable || D->getDeclContext() != D->getLexicalDeclContext()) && in makeDeclVisibleInContextWithFlags()
H A DDecl.cpp100 return !getLexicalDeclContext()->Equals(getDeclContext()); in isOutOfLine()
2249 return getLexicalDeclContext()->isExternCContext(); in isInExternCContext()
2253 return getLexicalDeclContext()->isExternCXXContext(); in isInExternCXXContext()
3562 return getLexicalDeclContext()->isExternCContext(); in isInExternCContext()
3566 return getLexicalDeclContext()->isExternCXXContext(); in isInExternCXXContext()
3854 if (!Redecl->getLexicalDeclContext()->isTranslationUnit()) in RedeclForcesDefC99()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DExtract.cpp52 while (const auto *RD = dyn_cast<CXXRecordDecl>(D->getLexicalDeclContext())) in computeFunctionExtractionLocation()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DBugSuppression.cpp183 dyn_cast_or_null<Decl>(DeclWithIssue->getLexicalDeclContext()); in isSuppressed()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaTemplateInstantiateDecl.cpp59 !OldDecl->getLexicalDeclContext()->isDependentContext()) && in SubstQualifier()
64 ? NewDecl->getLexicalDeclContext() in SubstQualifier()
65 : OldDecl->getLexicalDeclContext())); in SubstQualifier()
1002 D->getLexicalDeclContext() != Result->getLexicalDeclContext()) in getPreviousDeclForInstantiation()
2320 Inst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitClassTemplateDecl()
2321 RecordInst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitClassTemplateDecl()
2403 Inst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitVarTemplateDecl()
2404 VarInst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitVarTemplateDecl()
3211 FunctionTemplate->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitCXXMethodDecl()
3237 Method->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitCXXMethodDecl()
[all …]
H A DSemaConcept.cpp775 getTemplateInstantiationArgs(FD, FD->getLexicalDeclContext(), in SetupConstraintCheckingTemplateArgumentsAndScope()
861 ND, ND->getLexicalDeclContext(), /*Final=*/false, in CalculateTemplateDepthForConstraints()
968 ? DeclInfo.getLexicalDeclContext() in SubstituteConstraintExpressionWithoutSatisfaction()
994 Old->getLexicalDeclContext() != New.getLexicalDeclContext()) { in AreConstraintExpressionsEqual()
1517 CSE->getNamedConcept(), CSE->getNamedConcept()->getLexicalDeclContext(), in substituteParameterMappings()
H A DSemaAccess.cpp124 DC = Function->getLexicalDeclContext(); in EffectiveContext()
1517 DC = D->getLexicalDeclContext(); in HandleDelayedAccessCheck()
1959 = dyn_cast<ObjCImplDecl>(FD->getLexicalDeclContext())) { in IsSimplyAccessible()
H A DSemaTemplateInstantiate.cpp264 InstFromPartialTempl->getLexicalDeclContext()); in HandleClassTemplateSpec()
337 (!Pattern || !Pattern->getLexicalDeclContext()->isFileContext())) { in HandleFunction()
338 return Response::ChangeDecl(Function->getLexicalDeclContext()); in HandleFunction()
342 return Response::ChangeDecl(Function->getLexicalDeclContext()); in HandleFunction()
398 return Response::ChangeDecl(FTD->getLexicalDeclContext()); in HandleFunctionTemplateDecl()
428 return Response::ChangeDecl(Rec->getLexicalDeclContext()); in HandleRecordDecl()
539 R = Response::ChangeDecl(CTD->getLexicalDeclContext()); in getTemplateInstantiationArgs()
H A DSemaDecl.cpp1559 DeclContext *IDC = (*I)->getLexicalDeclContext()->getRedeclContext(); in PushOnScopeChains()
1678 if (!New->getLexicalDeclContext() in CheckRedeclarationExported()
1681 !Old->getLexicalDeclContext() in CheckRedeclarationExported()
1854 D->getLexicalDeclContext()->isDependentContext()) in ShouldWarnIfUnusedFileScopedDecl()
3589 auto *LexDC = NewD->getLexicalDeclContext(); in adjustDeclContextForDeclaratorDecl()
4003 if (!isFriend && NewMethod->getLexicalDeclContext()->isRecord() && in MergeFunctionDecl()
4543 (!OldVD->getLexicalDeclContext()->isFunctionOrMethod() && in mergeTypeWithPrevious()
4544 !NewVD->getLexicalDeclContext()->isFunctionOrMethod()); in mergeTypeWithPrevious()
4548 return !OldVD->getLexicalDeclContext()->isFunctionOrMethod() || in mergeTypeWithPrevious()
4549 OldVD->getLexicalDeclContext() == NewVD->getLexicalDeclContext(); in mergeTypeWithPrevious()
[all …]
H A DSemaTemplateDeductionGuide.cpp889 if (F->getLexicalDeclContext()->getDeclKind() == in buildAssociatedConstraints()
892 F, F->getLexicalDeclContext(), in buildAssociatedConstraints()
H A DSemaLookup.cpp362 if (const DeclContext *DC = D->getLexicalDeclContext(); in getContextForScopeMatching()
1605 DeclContext *Context = Entity->getLexicalDeclContext(); in getDefiningModule()
1819 return D->getLexicalDeclContext()->isFileContext(); in hasAcceptableMemberSpecialization()
1868 DeclContext *DC = D->getLexicalDeclContext(); in isAcceptableSlow()
3966 auto *RD = cast<CXXRecordDecl>(D->getLexicalDeclContext()); in ArgumentDependentLookup()
H A DSemaModule.cpp639 for (auto *DC = D->getLexicalDeclContext(); DC; DC = DC->getLexicalParent()) in getEnclosingExportDecl()
H A DSemaOpenACCClause.cpp2243 FD->getLexicalDeclContext()->getPrimaryContext()) != DC) { in CheckDeclareClause()
2261 Var->getLexicalDeclContext()->getPrimaryContext()) != DC) { in CheckDeclareClause()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DCxxModuleHandler.cpp289 new_class_template->getLexicalDeclContext()); in tryInstantiateStdTemplate()
H A DClangASTImporter.cpp122 m_backups[decl] = {decl->getDeclContext(), decl->getLexicalDeclContext()}; in OverrideOne()
149 !ChainPassesThrough(decl, base, &clang::Decl::getLexicalDeclContext, in GetEscapedChild()
192 for (DeclContext *decl_context = decl->getLexicalDeclContext(); in OverrideAllDeclsFromContainingFunction()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDeclBase.h915 DeclContext *getLexicalDeclContext() { in getLexicalDeclContext() function
920 const DeclContext *getLexicalDeclContext() const { in getLexicalDeclContext() function
921 return const_cast<Decl*>(this)->getLexicalDeclContext(); in getLexicalDeclContext()
2130 return cast<Decl>(this)->getLexicalDeclContext();
H A DDecl.h1235 if (const DeclContext *DC = getLexicalDeclContext()) in isLocalVarDecl()
1249 const DeclContext *DC = getLexicalDeclContext()->getRedeclContext(); in isFunctionOrMethodVarDecl()
1326 if (getLexicalDeclContext()->getRedeclContext()->isFileContext()) in isFileVarDecl()
H A DDeclTemplate.h1927 isa<CXXRecordDecl>(getLexicalDeclContext());
2709 isa<CXXRecordDecl>(getLexicalDeclContext());
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DModuleBuilder.cpp227 if (!D->getLexicalDeclContext()->isDependentContext()) in HandleInlineFunctionDefinition()

12