Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaTemplateInstantiateDecl.cpp55 Sema::ContextRAII SavedContext( in SubstQualifier()
229 Sema::ContextRAII SwitchContext(S, New); in instantiateDependentFunctionAttrCondition()
326 Sema::ContextRAII SavedContext(S, FD); in instantiateOMPDeclareSimdDeclAttr()
407 Sema::ContextRAII SavedContext(S, FD); in instantiateOMPDeclareVariantAttr()
4525 ContextRAII SavedContext(*this, FD); in InstantiateDefaultArgument()
4592 Sema::ContextRAII savedContext(*this, Decl); in InstantiateExceptionSpec()
4686 Sema::ContextRAII SwitchContext(SemaRef, New); in InitFunctionInstantiation()
4769 ContextRAII SavedContext(*this, FD); in InstantiateFunctionDeclaration()
5049 Sema::ContextRAII savedContext(*this, Function); in InstantiateFunctionDefinition()
5334 ContextRAII SwitchContext(*this, Var->getDeclContext()); in InstantiateVariableInitializer()
[all …]
H A DSemaTemplateInstantiate.cpp2030 EnterExpressionEvaluationContext ContextRAII( in TransformNestedRequirement() local
2464 Sema::ContextRAII SavedContext(*this, OwningFunc); in SubstParmVarDecl()
2712 ContextRAII SavedContext(*this, Instantiation); in InstantiateClass()
2960 ContextRAII SavedContext(*this, Instantiation); in InstantiateEnum()
3033 ContextRAII SavedContext(*this, Instantiation->getParent()); in InstantiateInClassInitializer()
H A DSemaCUDA.cpp345 ContextRAII MethodContext(*this, MemberDecl); in inferCUDATargetForImplicitSpecialMember()
H A DSemaTemplateDeduction.cpp2818 Sema::ContextRAII SavedContext(S, getAsDeclContextOrEnclosing(Partial)); in FinishTemplateArgumentDeduction()
2903 Sema::ContextRAII SavedContext(S, getAsDeclContextOrEnclosing(Template)); in FinishTemplateArgumentDeduction()
3147 ContextRAII SavedContext(*this, FunctionTemplate->getTemplatedDecl()); in SubstituteExplicitTemplateArguments()
3450 ContextRAII SavedContext(*this, FunctionTemplate->getTemplatedDecl()); in FinishTemplateArgumentDeduction()
4098 ContextRAII SavedContext(*this, CallingCtx); in DeduceTemplateArguments()
H A DSemaConcept.cpp424 Sema::ContextRAII savedContext(*this, Decl); in CheckInstantiatedFunctionTemplateConstraints()
H A DSemaTemplate.cpp1771 ContextRAII SavedContext(*this, SemanticContext); in CheckClassTemplate()
5174 Sema::ContextRAII SavedContext(SemaRef, Template->getDeclContext(), in SubstDefaultTemplateArgument()
5227 Sema::ContextRAII SavedContext(SemaRef, Template->getDeclContext()); in SubstDefaultTemplateArgument()
5280 Sema::ContextRAII SavedContext(SemaRef, Template->getDeclContext()); in SubstDefaultTemplateArgument()
H A DSemaDeclObjC.cpp532 Sema::ContextRAII SavedContext(TheSema, CD); in diagnoseUseOfProtocols()
1083 ContextRAII SavedContext(*this, IDecl); in ActOnStartClassInterface()
H A DSemaExprCXX.cpp5351 Sema::ContextRAII TUContext(S, S.Context.getTranslationUnitDecl()); in evaluateTypeTrait()
5598 Sema::ContextRAII TUContext(Self, Self.Context.getTranslationUnitDecl()); in EvaluateBinaryTypeTrait()
5650 Sema::ContextRAII TUContext(Self, Self.Context.getTranslationUnitDecl()); in EvaluateBinaryTypeTrait()
H A DSemaDeclCXX.cpp1070 EnterExpressionEvaluationContext ContextRAII( in isTupleLike() local
9408 ContextRAII MethodContext(*this, MD); in ShouldDeleteSpecialMember()
10575 ContextRAII SwitchContext(*this, Destructor); in CheckDestructor()
13328 Sema::ContextRAII SavedContext;
17761 ContextRAII SavedContext(*this, DD); in MarkVTableUsed()
H A DSemaDecl.cpp6219 ContextRAII SavedContext(*this, DC); in HandleDeclarator()
9570 ContextRAII SavedContext(*this, DC); in ActOnFunctionDeclarator()
15442 ContextRAII SavedContext(*this, ContextScope->getEntity()); in ImplicitlyDefineFunction()
H A DTreeTransform.h12587 Sema::ContextRAII SavedContext(getSema(), Body, /*NewThisContext*/false); in TransformRequiresExpr()
13138 Sema::ContextRAII SavedContext(getSema(), NewCallOperator, in TransformLambdaExpr()
/llvm-project-15.0.7/clang/lib/Parse/
H A DParseTemplate.cpp1687 Sema::ContextRAII GlobalSavedContext( in ParseLateTemplatedFuncDef()
1726 Sema::ContextRAII FunctionSavedContext(Actions, FunD->getLexicalParent()); in ParseLateTemplatedFuncDef()
H A DParseExpr.cpp2893 Sema::ContextRAII SavedContext(Actions, CodeDC, /*NewThisContext=*/false); in ParseParenExpression()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h991 class ContextRAII {
1001 ContextRAII(Sema &S, DeclContext *ContextToPush, bool NewThisContext = true)
1027 ~ContextRAII() { in ~ContextRAII()
1050 Sema::ContextRAII SavedContext;