Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/clang/lib/Index/
H A DIndexDecl.cpp90 Parent->getLexicalDeclContext(), in handleDeclarator()
287 handleTemplateArgumentLoc(Arg, D, D->getLexicalDeclContext()); in VisitFunctionDecl()
510 if (MD->getLexicalDeclContext() == D->getLexicalDeclContext()) in VisitObjCPropertyDecl()
513 if (MD->getLexicalDeclContext() == D->getLexicalDeclContext()) in VisitObjCPropertyDecl()
587 D->getLexicalDeclContext()); in VisitNamespaceAliasDecl()
597 D->getLexicalDeclContext()); in VisitUsingDecl()
616 D->getLexicalDeclContext(), in VisitUsingDirectiveDecl()
625 D->getLexicalDeclContext()); in VisitUnresolvedUsingValueDecl()
656 D->getLexicalDeclContext()); in VisitClassTemplateSpecializationDecl()
696 TP->getLexicalDeclContext()); in VisitTemplateDecl()
[all …]
H A DIndexTypeSourceInfo.cpp255 DC = Parent->getLexicalDeclContext(); in indexTypeLoc()
269 DC = Parent->getLexicalDeclContext(); in indexNestedNameSpecifierLoc()
H A DIndexBody.cpp485 DC = Parent->getLexicalDeclContext(); in indexBody()
/freebsd-13.1/contrib/llvm-project/clang/lib/Serialization/
H A DASTCommon.cpp453 D->getLexicalDeclContext()->isDependentContext() && !isa<TagDecl>(D)) { in needsAnonymousDeclarationNumber()
467 if (D->getLexicalDeclContext()->isFunctionOrMethod()) { in needsAnonymousDeclarationNumber()
477 if (D->getDeclName() || !isa<CXXRecordDecl>(D->getLexicalDeclContext())) in needsAnonymousDeclarationNumber()
H A DASTWriterDecl.cpp300 if (D->getDeclContext() != D->getLexicalDeclContext()) in VisitDecl()
301 Record.AddDeclRef(cast_or_null<Decl>(D->getLexicalDeclContext())); in VisitDecl()
389 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitTypedefDecl()
454 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitEnumDecl()
491 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitRecordDecl()
798 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitObjCIvarDecl()
932 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitFieldDecl()
1056 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitVarDecl()
1104 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitParmVarDecl()
1396 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitCXXMethodDecl()
H A DASTReaderDecl.cpp1441 VD->getLexicalDeclContext()->isFunctionOrMethod()) in VisitVarDeclImpl()
3346 setAnonymousDeclForMerging(Reader, New->getLexicalDeclContext(), in ~FindExistingResult()
3475 Reader, D->getLexicalDeclContext(), AnonymousDeclNumber)) in findExisting()
3530 auto MergedDCIt = Reader.MergedDeclContexts.find(D->getLexicalDeclContext()); in findExisting()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DDeclBase.cpp260 auto *DC = getFriendObjectKind() ? getLexicalDeclContext() : getDeclContext(); in isTemplated()
282 getFriendObjectKind() ? getLexicalDeclContext() : getDeclContext(); in getTemplateDepth()
332 if (DC == getLexicalDeclContext()) in setLexicalDeclContext()
368 const DeclContext *LDC = getLexicalDeclContext(); in isInLocalScopeForInstantiation()
1424 return (D->getLexicalDeclContext() == this && in containsDecl()
1474 assert(D->getLexicalDeclContext() == this && in removeDecl()
1525 assert(D->getLexicalDeclContext() == this && in addHiddenDecl()
1858 ((!Recoverable || D->getDeclContext() != D->getLexicalDeclContext()) && in makeDeclVisibleInContextWithFlags()
H A DDecl.cpp100 return !getLexicalDeclContext()->Equals(getDeclContext()); in isOutOfLine()
2118 return getLexicalDeclContext()->isExternCContext(); in isInExternCContext()
2122 return getLexicalDeclContext()->isExternCXXContext(); in isInExternCXXContext()
3188 return getLexicalDeclContext()->isExternCContext(); in isInExternCContext()
3192 return getLexicalDeclContext()->isExternCXXContext(); in isInExternCXXContext()
3420 if (!Redecl->getLexicalDeclContext()->isTranslationUnit()) in RedeclForcesDefC99()
H A DASTImporter.cpp290 ToD->getLexicalDeclContext()->addDeclInternal(ToD); in addDeclToContexts()
295 DeclContext *FromLexicalDC = FromD->getLexicalDeclContext(); in addDeclToContexts()
297 DeclContext *ToLexicalDC = ToD->getLexicalDeclContext(); in addDeclToContexts()
1890 assert(ToDC == ToD->getLexicalDeclContext() && ToDC->containsDecl(ToD)); in ImportDeclContext()
1911 if (FromD->getDeclContext() != FromD->getLexicalDeclContext()) { in ImportDeclContext()
1913 FromD->getLexicalDeclContext()); in ImportDeclContext()
2513 cast<Decl>(D->getLexicalDeclContext()))); in VisitTypedefNameDecl()
3254 assert(RD->getLexicalDeclContext() == RD->getDeclContext()); in hasAutoReturnTypeDeclaredInside()
3264 assert(TD->getLexicalDeclContext() == TD->getDeclContext()); in hasAutoReturnTypeDeclaredInside()
3375 if (D->getLexicalDeclContext() == D->getDeclContext()) { in VisitFunctionDecl()
[all …]
H A DJSONNodeDumper.cpp119 if (D->getLexicalDeclContext() != D->getDeclContext()) { in Visit()
H A DTextNodeDumper.cpp254 if (D->getLexicalDeclContext() != D->getDeclContext()) in Visit()
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DExtract.cpp51 while (const auto *RD = dyn_cast<CXXRecordDecl>(D->getLexicalDeclContext())) in computeFunctionExtractionLocation()
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DCxxModuleHandler.cpp285 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()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DDeclBase.h843 DeclContext *getLexicalDeclContext() { in getLexicalDeclContext() function
848 const DeclContext *getLexicalDeclContext() const { in getLexicalDeclContext() function
849 return const_cast<Decl*>(this)->getLexicalDeclContext(); in getLexicalDeclContext()
1877 return cast<Decl>(this)->getLexicalDeclContext();
H A DDecl.h1171 if (const DeclContext *DC = getLexicalDeclContext()) in isLocalVarDecl()
1185 const DeclContext *DC = getLexicalDeclContext()->getRedeclContext(); in isFunctionOrMethodVarDecl()
1262 if (getLexicalDeclContext()->getRedeclContext()->isFileContext()) in isFileVarDecl()
H A DDeclTemplate.h1916 isa<CXXRecordDecl>(getLexicalDeclContext());
2772 isa<CXXRecordDecl>(getLexicalDeclContext());
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaTemplateInstantiateDecl.cpp53 !OldDecl->getLexicalDeclContext()->isDependentContext()) && in SubstQualifier()
58 ? NewDecl->getLexicalDeclContext() in SubstQualifier()
817 D->getLexicalDeclContext() != Result->getLexicalDeclContext()) in getPreviousDeclForInstantiation()
1640 Inst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitClassTemplateDecl()
1641 RecordInst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitClassTemplateDecl()
1723 Inst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitVarTemplateDecl()
1724 VarInst->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitVarTemplateDecl()
2491 Method->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitCXXMethodDecl()
5233 NewVar->getLexicalDeclContext()->addHiddenDecl(NewVar); in BuildVariableInstantiation()
5541 Var->getLexicalDeclContext()->isRecord()) { in InstantiateVariableDefinition()
[all …]
H A DSemaAccess.cpp128 DC = Function->getLexicalDeclContext(); in EffectiveContext()
1490 DC = D->getLexicalDeclContext(); in HandleDelayedAccessCheck()
1939 = dyn_cast<ObjCImplDecl>(FD->getLexicalDeclContext())) { in IsSimplyAccessible()
H A DSemaDecl.cpp1697 D->getLexicalDeclContext()->isDependentContext()) in ShouldWarnIfUnusedFileScopedDecl()
2377 ED->getLexicalDeclContext()->removeDecl(ED); in MergeTypedefNameDecl()
3252 auto *LexDC = NewD->getLexicalDeclContext(); in adjustDeclContextForDeclaratorDecl()
4083 OldVD->getLexicalDeclContext() == NewVD->getLexicalDeclContext(); in mergeTypeWithPrevious()
4251 !(Old->getLexicalDeclContext()->isRecord() && in MergeVarDecl()
4252 !New->getLexicalDeclContext()->isRecord())) { in MergeVarDecl()
9459 DeclContext *TagDC = TD->getLexicalDeclContext(); in ActOnFunctionDeclarator()
10138 if (!NewD->getLexicalDeclContext()->isDependentContext()) in canFullyTypeCheckRedeclaration()
10170 if (!D->getLexicalDeclContext()->isDependentContext()) in shouldLinkDependentDeclWithPrevious()
12444 VDecl->getLexicalDeclContext()->isRecord()) { in AddInitializerToDecl()
[all …]
H A DSemaModule.cpp335 for (auto *DC = D->getLexicalDeclContext(); DC; DC = DC->getLexicalParent()) in getEnclosingExportDecl()
H A DSemaLookup.cpp355 DeclContext *DC = D->getLexicalDeclContext(); in getContextForScopeMatching()
1538 DeclContext *Context = Entity->getLexicalDeclContext(); in getDefiningModule()
1666 return D->getLexicalDeclContext()->isFileContext(); in hasVisibleMemberSpecialization()
1699 DeclContext *DC = D->getLexicalDeclContext(); in isVisibleSlow()
3614 auto *RD = cast<CXXRecordDecl>(D->getLexicalDeclContext()); in ArgumentDependentLookup()
H A DSemaTemplateInstantiate.cpp176 (!Pattern || !Pattern->getLexicalDeclContext()->isFileContext())) { in getTemplateInstantiationArgs()
177 Ctx = Function->getLexicalDeclContext(); in getTemplateInstantiationArgs()
760 cast<CXXRecordDecl>(FD->getLexicalDeclContext())); in PrintInstantiationStack()
H A DSemaDeclCXX.cpp455 ? New->getLexicalDeclContext() in MergeCXXFunctionDecl()
567 !New->getLexicalDeclContext()->isDependentContext()) { in MergeCXXFunctionDecl()
1263 RefVD->setLexicalDeclContext(Src->getLexicalDeclContext()); in checkTupleLikeDecomposition()
1268 RefVD->getLexicalDeclContext()->addHiddenDecl(RefVD); in checkTupleLikeDecomposition()
8374 CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(FD->getLexicalDeclContext()); in CheckExplicitlyDefaultedComparison()
9289 *this, cast<CXXRecordDecl>(FD->getLexicalDeclContext()), FD, in DiagnoseDeletedDefaultedFunction()
16941 assert(ND->getLexicalDeclContext() == CurContext); in ActOnFriendFunctionDecl()
17092 !isa<CXXRecordDecl>(FD->getLexicalDeclContext())) { in SetDeclDefaulted()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DModuleBuilder.cpp207 if (!D->getLexicalDeclContext()->isDependentContext()) in HandleInlineFunctionDefinition()

12