Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaTemplateInstantiateDecl.cpp57 Sema::ContextRAII SavedContext( in SubstQualifier()
234 Sema::ContextRAII SwitchContext(S, New); in instantiateDependentFunctionAttrCondition()
339 Sema::ContextRAII SavedContext(S, FD); in instantiateOMPDeclareSimdDeclAttr()
420 Sema::ContextRAII SavedContext(S, FD); in instantiateOMPDeclareVariantAttr()
4696 Sema::ContextRAII savedContext(*this, Decl); in InstantiateExceptionSpec()
4787 Sema::ContextRAII SwitchContext(SemaRef, New); in InitFunctionInstantiation()
4870 ContextRAII SavedContext(*this, FD); in InstantiateFunctionDeclaration()
5156 Sema::ContextRAII savedContext(*this, Function); in InstantiateFunctionDefinition()
5447 ContextRAII SwitchContext(*this, Var->getDeclContext()); in InstantiateVariableInitializer()
5562 ContextRAII PreviousContext(*this, Var->getDeclContext()); in InstantiateVariableDefinition()
[all …]
H A DSemaTemplateInstantiate.cpp2535 EnterExpressionEvaluationContext ContextRAII( in TransformNestedRequirement() local
3050 ContextRAII SavedContext(*this, FD); in SubstDefaultArgument()
3290 ContextRAII SavedContext(*this, Instantiation); in InstantiateClass()
3539 ContextRAII SavedContext(*this, Instantiation); in InstantiateEnum()
3612 ContextRAII SavedContext(*this, Instantiation->getParent()); in InstantiateInClassInitializer()
H A DSemaConcept.cpp708 ContextRAII SavedContext{*this, CtxToSave}; in CheckFunctionConstraints()
904 Sema::ContextRAII savedContext(*this, Decl); in CheckInstantiatedFunctionTemplateConstraints()
H A DSemaCUDA.cpp381 ContextRAII MethodContext(*this, MemberDecl); in inferCUDATargetForImplicitSpecialMember()
H A DSemaLambda.cpp421 ContextRAII ManglingContext(*this, Class->getDeclContext()); in handleLambdaNumbering()
1283 ContextRAII Context(*this, LSI->CallOperator, /*NewThisContext*/ false); in ActOnLambdaClosureQualifiers()
H A DSemaTemplateDeduction.cpp2961 Sema::ContextRAII SavedContext(S, getAsDeclContextOrEnclosing(Partial)); in FinishTemplateArgumentDeduction()
3054 Sema::ContextRAII SavedContext(S, getAsDeclContextOrEnclosing(Template)); in FinishTemplateArgumentDeduction()
3304 ContextRAII SavedContext(*this, FunctionTemplate->getTemplatedDecl()); in SubstituteExplicitTemplateArguments()
3656 ContextRAII SavedContext(*this, FunctionTemplate->getTemplatedDecl()); in FinishTemplateArgumentDeduction()
4392 ContextRAII SavedContext(*this, CallingCtx); in DeduceTemplateArguments()
H A DSemaTemplate.cpp1910 ContextRAII SavedContext(*this, SemanticContext); in CheckClassTemplate()
2715 ContextRAII SavedContext(*this, Pattern->getTemplatedDecl()); in DeclareImplicitDeductionGuideFromInitList()
2764 ContextRAII SavedContext(*this, Pattern->getTemplatedDecl()); in DeclareImplicitDeductionGuides()
5478 Sema::ContextRAII SavedContext(SemaRef, Template->getDeclContext(), in SubstDefaultTemplateArgument()
5527 Sema::ContextRAII SavedContext(SemaRef, Template->getDeclContext()); in SubstDefaultTemplateArgument()
5576 Sema::ContextRAII SavedContext(SemaRef, Template->getDeclContext()); in SubstDefaultTemplateArgument()
6310 ContextRAII Context(*this, NewContext); in CheckTemplateArgumentList()
H A DSemaDeclObjC.cpp532 Sema::ContextRAII SavedContext(TheSema, CD); in diagnoseUseOfProtocols()
1091 ContextRAII SavedContext(*this, IDecl); in ActOnStartClassInterface()
H A DSemaExprCXX.cpp5551 Sema::ContextRAII TUContext(S, S.Context.getTranslationUnitDecl()); in EvaluateBooleanTypeTrait()
5837 Sema::ContextRAII TUContext(Self, Self.Context.getTranslationUnitDecl()); in EvaluateBinaryTypeTrait()
5889 Sema::ContextRAII TUContext(Self, Self.Context.getTranslationUnitDecl()); in EvaluateBinaryTypeTrait()
H A DSemaDeclCXX.cpp1134 EnterExpressionEvaluationContext ContextRAII( in isTupleLike() local
9791 ContextRAII MethodContext(*this, MD); in ShouldDeleteSpecialMember()
10960 ContextRAII SwitchContext(*this, Destructor); in CheckDestructor()
13876 Sema::ContextRAII SavedContext;
18669 ContextRAII SavedContext(*this, DD); in MarkVTableUsed()
H A DTreeTransform.h12999 Sema::ContextRAII SavedContext(getSema(), Body, /*NewThisContext*/false); in TransformRequiresExpr()
13503 Sema::ContextRAII SavedContext(getSema(), NewCallOperator, in TransformLambdaExpr()
13707 Sema::ContextRAII ManglingContext(getSema(), Class->getDeclContext()); in TransformLambdaExpr()
H A DSemaDecl.cpp6435 ContextRAII SavedContext(*this, DC); in HandleDeclarator()
9960 ContextRAII SavedContext(*this, DC); in ActOnFunctionDeclarator()
16473 ContextRAII SavedContext(*this, ContextScope->getEntity()); in ImplicitlyDefineFunction()
/freebsd-14.2/contrib/llvm-project/clang/lib/Parse/
H A DParseTemplate.cpp1733 Sema::ContextRAII GlobalSavedContext( in ParseLateTemplatedFuncDef()
1777 Sema::ContextRAII FunctionSavedContext(Actions, FunD->getLexicalParent()); in ParseLateTemplatedFuncDef()
H A DParseExpr.cpp3013 Sema::ContextRAII SavedContext(Actions, CodeDC, /*NewThisContext=*/false); in ParseParenExpression()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h1033 class ContextRAII {
1043 ContextRAII(Sema &S, DeclContext *ContextToPush, bool NewThisContext = true)
1069 ~ContextRAII() { in ~ContextRAII()
1078 Sema::ContextRAII SavedContext;