Home
last modified time | relevance | path

Searched refs:Encloses (Results 1 – 15 of 15) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DConfusableIdentifierCheck.cpp140 if (DC0->Encloses(DC1)) in mayShadow()
142 if (DC1->Encloses(DC0)) in mayShadow()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DAddUsing.cpp74 if (D->getDeclContext()->Encloses(SelectionDeclContext)) { in VisitUsingDecl()
87 Node->getDeclContext()->Encloses(SelectionDeclContext)) { in TraverseDecl()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DAST.cpp119 if (CurContext->Encloses(DestContext)) in getQualification()
389 return DC->Encloses(CurContext); in printType()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSema.cpp2266 !CurBSI->TheDecl->Encloses(CurContext)) { in getCurBlock()
2290 if (LSI->Lambda && !LSI->Lambda->Encloses(CurContext)) { in getEnclosingLambda()
2317 !CurLSI->Lambda->Encloses(CurContext)) { in getCurLambda()
H A DSemaExprMember.cpp221 !RepClass->Equals(ContextClass) && RepClass->Encloses(ContextClass)) in diagnoseInstanceReference()
H A DSemaDecl.cpp1556 } else if (IDC->Encloses(CurContext)) in PushOnScopeChains()
6086 if (!Cur->Encloses(DC) && !IsTemplateId) { in diagnoseQualifiedDeclaration()
8094 if (RD->isLambda() && OldDC->Encloses(NewDC->getLexicalParent())) { in CheckShadow()
16136 (OldDC->Encloses(NewDC) || NewDC->Encloses(OldDC))) in isAcceptableTagRedeclContext()
16423 !EnclosingNS->Encloses(ND->getDeclContext())) { in ActOnTag()
H A DSemaTemplate.cpp1840 OutermostContext->Encloses(PrevDecl->getDeclContext()))) { in CheckClassTemplate()
8123 if (!(DC->isFileContext() ? DC->Encloses(SpecializedContext) in CheckTemplateSpecializationScope()
9514 if (CurContext->Encloses(OrigContext)) in CheckExplicitInstantiationScope()
H A DSemaLookup.cpp185 while (!Common->Encloses(EffectiveDC)) in addUsingDirective()
H A DSemaCodeComplete.cpp716 CommonAncestor && !CommonAncestor->Encloses(CurContext); in getRequiredQualification()
H A DSemaOpenMP.cpp3060 !getCurLexicalContext()->Encloses(CanonicalVD->getDeclContext()))) { in ActOnOpenMPIdExpression()
4687 if (!VDC->Encloses(CurContext)) in tryCaptureOpenMPLambdas()
H A DSemaOverload.cpp12947 if (Std && Std->Encloses(*it)) in DiagnoseTwoPhaseLookup()
H A DSemaDeclCXX.cpp11705 while (CommonAncestor && !CommonAncestor->Encloses(CurContext)) in ActOnUsingDirective()
H A DSemaExpr.cpp19545 !LSI->CallOperator->Encloses(Var->getDeclContext()))) { in DoMarkVarDeclReferenced()
/llvm-project-15.0.7/clang/lib/AST/
H A DDeclBase.cpp1223 bool DeclContext::Encloses(const DeclContext *DC) const { in Encloses() function in DeclContext
1225 return getPrimaryContext()->Encloses(DC); in Encloses()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DDeclBase.h2034 bool Encloses(const DeclContext *DC) const;