Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaTemplateInstantiateDecl.cpp62 Sema::ContextRAII SavedContext( in SubstQualifier()
239 Sema::ContextRAII SwitchContext(S, New); in instantiateDependentFunctionAttrCondition()
344 Sema::ContextRAII SavedContext(S, FD); in instantiateOMPDeclareSimdDeclAttr()
425 Sema::ContextRAII SavedContext(S, FD); in instantiateOMPDeclareVariantAttr()
4700 Sema::ContextRAII savedContext(*this, Decl); in InstantiateExceptionSpec()
4798 Sema::ContextRAII SwitchContext(SemaRef, New); in InitFunctionInstantiation()
4873 ContextRAII SavedContext(*this, FD); in InstantiateFunctionDeclaration()
5157 Sema::ContextRAII savedContext(*this, Function); in InstantiateFunctionDefinition()
5444 ContextRAII SwitchContext(*this, Var->getDeclContext()); in InstantiateVariableInitializer()
5544 ContextRAII PreviousContext(*this, Var->getDeclContext()); in InstantiateVariableDefinition()
[all …]
H A DSemaConcept.cpp873 ContextRAII SavedContext{*this, CtxToSave}; in CheckFunctionConstraints()
1006 std::optional<Sema::ContextRAII> ContextScope; in SubstituteConstraintExpressionWithoutSatisfaction()
1113 Sema::ContextRAII savedContext(*this, Decl); in CheckInstantiatedFunctionTemplateConstraints()
H A DSemaTemplateDeductionGuide.cpp1346 ContextRAII SavedContext(*this, Pattern->getTemplatedDecl()); in DeclareAggregateDeductionGuideFromInitList()
1399 ContextRAII SavedContext(*this, Pattern->getTemplatedDecl()); in DeclareImplicitDeductionGuides()
H A DSemaTemplateInstantiate.cpp2757 EnterExpressionEvaluationContext ContextRAII( in TransformNestedRequirement() local
3232 ContextRAII SavedContext(*this, FD); in SubstDefaultArgument()
3459 ContextRAII SavedContext(*this, Instantiation); in InstantiateClass()
3693 ContextRAII SavedContext(*this, Instantiation); in InstantiateEnum()
3751 ContextRAII SavedContext(*this, Instantiation->getParent()); in InstantiateInClassInitializer()
H A DSemaTemplateDeduction.cpp3124 Sema::ContextRAII SavedContext(S, getAsDeclContextOrEnclosing(Partial)); in FinishTemplateArgumentDeduction()
3220 Sema::ContextRAII SavedContext(S, getAsDeclContextOrEnclosing(Template)); in FinishTemplateArgumentDeduction()
3269 Sema::ContextRAII SavedContext(S, getAsDeclContextOrEnclosing(TD)); in FinishTemplateArgumentDeduction()
3499 ContextRAII SavedContext(*this, FunctionTemplate->getTemplatedDecl()); in SubstituteExplicitTemplateArguments()
3829 ContextRAII SavedContext(*this, FunctionTemplate->getTemplatedDecl()); in FinishTemplateArgumentDeduction()
4580 ContextRAII SavedContext(*this, CallingCtx); in DeduceTemplateArguments()
H A DSemaCUDA.cpp393 Sema::ContextRAII MethodContext(SemaRef, MemberDecl); in inferTargetForImplicitSpecialMember()
H A DSemaLambda.cpp463 ContextRAII ManglingContext(*this, Class->getDeclContext()); in handleLambdaNumbering()
1339 ContextRAII Context(*this, LSI->CallOperator, /*NewThisContext*/ false); in ActOnLambdaClosureQualifiers()
H A DSemaTemplate.cpp1850 ContextRAII SavedContext(*this, SemanticContext); in CheckClassTemplate()
3354 std::optional<ContextRAII> SavedContext; in CheckTemplateIdType()
4781 Sema::ContextRAII SavedContext(SemaRef, Template->getDeclContext(), in SubstDefaultTemplateArgument()
4833 Sema::ContextRAII SavedContext(SemaRef, Template->getDeclContext()); in SubstDefaultTemplateArgument()
4883 Sema::ContextRAII SavedContext(SemaRef, Template->getDeclContext()); in SubstDefaultTemplateArgument()
5582 ContextRAII Context(*this, NewContext); in CheckTemplateArgumentList()
H A DSemaExprCXX.cpp5139 Sema::ContextRAII TUContext(S, S.Context.getTranslationUnitDecl()); in HasNonDeletedDefaultedEqualityComparison()
5702 Sema::ContextRAII TUContext(Self, Self.Context.getTranslationUnitDecl()); in CheckConvertibilityForTypeTraits()
5797 Sema::ContextRAII TUContext(S, S.Context.getTranslationUnitDecl()); in EvaluateBooleanTypeTrait()
6102 Sema::ContextRAII TUContext(Self, Self.Context.getTranslationUnitDecl()); in EvaluateBinaryTypeTrait()
H A DSemaDeclObjC.cpp544 Sema::ContextRAII SavedContext(TheSema, CD); in diagnoseUseOfProtocols()
1088 Sema::ContextRAII SavedContext(SemaRef, IDecl); in ActOnStartClassInterface()
H A DSemaDeclCXX.cpp1122 EnterExpressionEvaluationContext ContextRAII( in isTupleLike() local
9699 ContextRAII MethodContext(*this, MD); in ShouldDeleteSpecialMember()
10865 ContextRAII SwitchContext(*this, Destructor); in CheckDestructor()
13744 Sema::ContextRAII SavedContext;
18481 ContextRAII SavedContext(*this, DD); in MarkVTableUsed()
H A DTreeTransform.h13890 Sema::ContextRAII SavedContext(getSema(), Body, /*NewThisContext*/false); in TransformRequiresExpr()
14413 Sema::ContextRAII SavedContext(getSema(), NewCallOperator, in TransformLambdaExpr()
14617 Sema::ContextRAII ManglingContext(getSema(), Class->getDeclContext()); in TransformLambdaExpr()
H A DSemaDecl.cpp6273 ContextRAII SavedContext(*this, DC); in HandleDeclarator()
9817 ContextRAII SavedContext(*this, DC); in ActOnFunctionDeclarator()
16267 ContextRAII SavedContext(*this, ContextScope->getEntity()); in ImplicitlyDefineFunction()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseTemplate.cpp1619 Sema::ContextRAII GlobalSavedContext( in ParseLateTemplatedFuncDef()
1663 Sema::ContextRAII FunctionSavedContext(Actions, FunD->getLexicalParent()); in ParseLateTemplatedFuncDef()
H A DParseCXXInlineMethods.cpp532 Sema::ContextRAII FnContext(Actions, FunctionToPush, in ParseLexedMethodDeclaration()
H A DParseExpr.cpp3087 Sema::ContextRAII SavedContext(Actions, CodeDC, /*NewThisContext=*/false); in ParseParenExpression()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h3010 class ContextRAII {
3020 ContextRAII(Sema &S, DeclContext *ContextToPush, bool NewThisContext = true)
3046 ~ContextRAII() { pop(); } in ~ContextRAII()
13066 Sema::ContextRAII SavedContext;