Home
last modified time | relevance | path

Searched refs:getCurScope (Results 1 – 25 of 39) sorted by relevance

12

/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseObjc.cpp60 Actions.CodeCompletion().CodeCompleteObjCAtDirective(getCurScope()); in ParseObjCAtDirectives()
160 Actions.CodeCompletion().CodeCompleteObjCClassForwardDecl(getCurScope()); in ParseObjCAtClassDeclaration()
199 Actions.ObjC().ActOnAtEnd(getCurScope(), AtLoc); in CheckNestedObjCContexts()
246 Actions.CodeCompletion().CodeCompleteObjCInterfaceDecl(getCurScope()); in ParseObjCAtInterfaceDeclaration()
265 ObjCTypeParamListScope typeParamScope(Actions, getCurScope()); in ParseObjCAtInterfaceDeclaration()
281 getCurScope(), nameId, nameLoc); in ParseObjCAtInterfaceDeclaration()
336 Actions.CodeCompletion().CodeCompleteObjCSuperclass(getCurScope(), nameId, in ParseObjCAtInterfaceDeclaration()
383 getCurScope(), AtLoc, nameId, nameLoc, typeParameterList, superClassId, in ParseObjCAtInterfaceDeclaration()
475 getCurScope(), ObjCTypeParamVariance::Invariant, SourceLocation(), in parseObjCTypeParamListOrProtocolRefs()
554 getCurScope(), variance, varianceLoc, typeParams.size(), paramName, in parseObjCTypeParamListOrProtocolRefs()
[all …]
H A DParseExpr.cpp162 LHS = Actions.ActOnUnaryOp(getCurScope(), ExtLoc, tok::kw___extension__, in ParseExpressionWithLeadingExtension()
173 getCurScope(), PreferredType.get(Tok.getLocation())); in ParseAssignmentExpression()
192 getCurScope(), PreferredType.get(Tok.getLocation())); in ParseConditionalExpression()
357 ExprResult Op = Actions.ActOnBinOp(getCurScope(), LogicalAndLoc, in ParseConstraintLogicalAndExpression()
392 ExprResult Op = Actions.ActOnBinOp(getCurScope(), LogicalOrLoc, in ParseConstraintLogicalOrExpression()
660 Actions.ActOnBinOp(getCurScope(), OpToken.getLocation(), in ParseRHSOfBinaryExpression()
1128 Res = Actions.ActOnNumericConstant(Tok, /*UDLScope*/getCurScope()); in ParseCastExpression()
1156 Res = Actions.ActOnNameClassifiedAsOverloadSet(getCurScope(), Res.get()); in ParseCastExpression()
1246 (Actions.getTypeName(II, ILoc, getCurScope()) || in ParseCastExpression()
1248 (&II == Ident_super && getCurScope()->isInObjcMethodScope()))) { in ParseCastExpression()
[all …]
H A DParseExprCXX.cpp101 if (!Actions.isTemplateName(getCurScope(), SS, /*hasTemplateKeyword=*/false, in CheckForTemplateAndDigraph()
276 getCurScope(), SS, EnteringContext, InUsingDeclaration, in ParseOptionalCXXScopeSpecifier()
355 getCurScope(), SS, TemplateKWLoc, TemplateName, ObjectType, in ParseOptionalCXXScopeSpecifier()
393 Actions.ActOnCXXNestedNameSpecifier(getCurScope(), in ParseOptionalCXXScopeSpecifier()
444 if (Actions.IsInvalidUnlessNestedName(getCurScope(), SS, IdInfo, in ParseOptionalCXXScopeSpecifier()
504 getCurScope(), IdInfo, EnteringContext, SS, CorrectionFlagPtr, in ParseOptionalCXXScopeSpecifier()
531 if (TemplateNameKind TNK = Actions.isTemplateName(getCurScope(), SS, in ParseOptionalCXXScopeSpecifier()
581 getCurScope(), SS, TemplateNameLoc, TemplateName, ObjectType, in ParseOptionalCXXScopeSpecifier()
615 E = Actions.ActOnNameClassifiedAsNonType(getCurScope(), SS, ND, Loc, Tok); in tryParseCXXIdExpression()
659 getCurScope(), SS, TemplateKWLoc, Name, Tok.is(tok::l_paren), in tryParseCXXIdExpression()
[all …]
H A DParser.cpp423 N->Init(getCurScope(), ScopeFlags); in EnterScope()
426 Actions.CurScope = new Scope(getCurScope(), ScopeFlags, Diags); in EnterScope()
432 assert(getCurScope() && "Scope imbalance!"); in ExitScope()
436 Actions.ActOnPopScope(Tok.getLocation(), getCurScope()); in ExitScope()
438 Scope *OldScope = getCurScope(); in ExitScope()
451 : CurScope(ManageFlags ? Self->getCurScope() : nullptr) { in ParseScopeFlags()
472 delete getCurScope(); in ~Parser()
492 assert(getCurScope() == nullptr && "A scope is already active?"); in Initialize()
494 Actions.ActOnTranslationUnitScope(getCurScope()); in Initialize()
892 Actions.ActOnEmptyDeclaration(getCurScope(), Attrs, Tok.getLocation()); in ParseExternalDeclaration()
[all …]
H A DParseDeclCXX.cpp73 Actions.CodeCompletion().CodeCompleteNamespaceDecl(getCurScope()); in ParseNamespace()
170 if (getCurScope()->isClassScope() || getCurScope()->isTemplateParamScope() || in ParseNamespace()
171 getCurScope()->isInObjcMethodScope() || getCurScope()->getBlockParent() || in ParseNamespace()
172 getCurScope()->getFnParent()) { in ParseNamespace()
241 getCurScope(), InlineLoc, NamespaceLoc, IdentLoc, Ident, in ParseNamespace()
288 getCurScope(), InnerNSs[index].InlineLoc, InnerNSs[index].NamespaceLoc, in ParseInnerNamespace()
313 Actions.CodeCompletion().CodeCompleteNamespaceAliasDecl(getCurScope()); in ParseNamespaceAlias()
350 return Actions.ActOnNamespaceAliasDef(getCurScope(), NamespaceLoc, AliasLoc, in ParseNamespaceAlias()
370 getCurScope(), DS.getSourceRange().getBegin(), Lang.get(), in ParseLinkage()
389 getCurScope(), LinkageSpec, SourceLocation()) in ParseLinkage()
[all …]
H A DParseStmt.cpp199 getCurScope(), SemaCodeCompletion::PCC_Statement); in ParseStatementOrDeclarationAfterAttributes()
565 if (Tok.is(tok::colon) && getCurScope()->isSwitchScope() && in ParseExprStatement()
658 ParseScopeFlags FilterScope(this, getCurScope()->getFlags() | in ParseSEHExceptBlock()
718 return Actions.ActOnSEHLeaveStmt(LeaveLoc, getCurScope()); in ParseSEHLeaveStatement()
856 Actions.CodeCompletion().CodeCompleteCase(getCurScope()); in ParseCaseStatement()
1003 SubStmt.get(), getCurScope()); in ParseDefaultStatement()
1224 Actions.FinalizeDeclaratorGroup(getCurScope(), DS, DeclsInGroup); in ParseCompoundStatementBody()
1357 Cond = Actions.ActOnCondition(getCurScope(), Loc, CondExpr.get(), CK, in ParseParenExprOrCondition()
1377 Cond = Actions.ActOnCondition(getCurScope(), Loc, CondExpr.get(), CK, in ParseParenExprOrCondition()
1665 Actions.CodeCompletion().CodeCompleteAfterIf(getCurScope(), IsBracedThen); in ParseIfStatement()
[all …]
H A DParseTemplate.cpp33 return Actions.getCurScope(); in ReenterTemplateScopes()
243 getCurScope(), AS, DS, ParsedAttributesView::none(), in ParseDeclarationAfterTemplate()
342 return Actions.ActOnConceptDefinition(getCurScope(), in ParseConceptDefinition()
571 getCurScope(), D, Depth, Position, /*EqualLoc=*/SourceLocation(), in ParseTemplateParameter()
638 auto TNK = Actions.isTemplateName(getCurScope(), SS, in TryAnnotateTypeConstraint()
758 NamedDecl *NewDecl = Actions.ActOnTypeParameter(getCurScope(), in ParseTypeParameter()
894 getCurScope(), TemplateLoc, ParamList, TypenameKeyword, EllipsisLoc, in ParseTemplateTemplateParameter()
961 return Actions.ActOnNonTypeTemplateParameter(getCurScope(), ParamDecl, in ParseNonTypeTemplateParameter()
1287 getCurScope(), SS, TemplateKWLoc, Template, in AnnotateTemplateIdToken()
1365 getCurScope(), SS, TemplateId->TemplateKWLoc, in AnnotateTemplateIdTokenAsType()
[all …]
H A DParseDecl.cpp726 Actions.ActOnReenterCXXMethodParameter(getCurScope(), Param); in ParseGNUAttributeArgs()
2119 getCurScope(), AS_none, DS, ParsedAttributesView::none(), AnonRecord); in ParseSimpleDeclaration()
2501 Decl *ThisDecl = Actions.ActOnDeclarator(getCurScope(), D); in ParseDeclGroup()
2511 return Actions.FinalizeDeclaratorGroup(getCurScope(), DS, ThisDecl); in ParseDeclGroup()
2599 return Actions.FinalizeDeclaratorGroup(getCurScope(), DS, DeclsInGroup); in ParseDeclGroup()
2667 S = P.getCurScope(); in ParseDeclarationAfterDeclaratorAndAttributes()
2679 S = P.getCurScope(); in ParseDeclarationAfterDeclaratorAndAttributes()
2710 ThisDecl = Actions.ActOnDeclarator(getCurScope(), D); in ParseDeclarationAfterDeclaratorAndAttributes()
2715 ThisDecl = Actions.ActOnTemplateDeclarator(getCurScope(), in ParseDeclarationAfterDeclaratorAndAttributes()
2729 getCurScope(), TemplateInfo.ExternLoc, TemplateInfo.TemplateLoc, D); in ParseDeclarationAfterDeclaratorAndAttributes()
[all …]
H A DParseCXXInlineMethods.cpp84 FnD = Actions.ActOnFriendFunctionDecl(getCurScope(), D, in ParseCXXInlineMethodDef()
87 FnD = Actions.ActOnCXXMemberDeclarator(getCurScope(), AS, D, in ParseCXXInlineMethodDef()
91 Actions.ProcessDeclAttributeList(getCurScope(), FnD, AccessAttrs); in ParseCXXInlineMethodDef()
365 P.Actions.ActOnStartDelayedMemberDeclarations(P.getCurScope(), in ReenterClassScopeRAII()
372 P.Actions.ActOnFinishDelayedMemberDeclarations(P.getCurScope(), in ~ReenterClassScopeRAII()
393 Actions.ActOnStartDelayedCXXMethodDeclaration(getCurScope(), LM.Method); in ParseLexedMethodDeclaration()
404 Actions.ActOnDelayedCXXMethodParameter(getCurScope(), Param); in ParseLexedMethodDeclaration()
582 Actions.ActOnFinishDelayedCXXMethodDeclaration(getCurScope(), LM.Method); in ParseLexedMethodDeclaration()
625 Actions.ActOnStartOfFunctionDef(getCurScope(), LM.D); in ParseLexedMethodDef()
839 Actions.ActOnFinishDelayedAttribute(getCurScope(), LA.Decls[i], Attrs); in ParseLexedAttribute()
H A DParseInit.cpp260 getCurScope()->isInObjcMethodScope()) { in ParseInitializerWithPotentialDesignator()
297 getCurScope(), II, IILoc, II == Ident_super, in ParseInitializerWithPotentialDesignator()
H A DParseOpenMP.cpp93 P->getCurScope(), SS, NameInfo, Kind); in operator ()()
370 getCurScope(), Actions.getCurLexicalContext(), Name, ReductionTypes, in ParseOpenMPDeclareReductionDirective()
382 Actions.OpenMP().ActOnOpenMPDeclareReductionCombinerStart(getCurScope(), D); in ParseOpenMPDeclareReductionDirective()
420 getCurScope(), D); in ParseOpenMPDeclareReductionDirective()
453 getCurScope(), DRD, IsCorrect); in ParseOpenMPDeclareReductionDirective()
464 Actions.CodeCompletion().CodeCompleteInitializer(getCurScope(), in ParseOpenMPReductionInitializerForDecl()
602 getCurScope(), Loc); in ParseOpenMPDeclareMapperDirective()
607 getCurScope(), MapperType, Range.getBegin(), VName); in ParseOpenMPDeclareMapperDirective()
637 getCurScope(), Actions.getCurLexicalContext(), MapperId, MapperType, in ParseOpenMPDeclareMapperDirective()
664 return Actions.OpenMP().ActOnOpenMPDeclareMapperVarDecl(getCurScope(), in parseOpenMPDeclareMapperVarDecl()
[all …]
H A DParseTentative.cpp79 getCurScope(), *II, Tok.getLocation(), SS, /*Template=*/nullptr); in isCXXDeclarationStatement()
80 if (Actions.isCurrentClassName(*II, getCurScope(), &SS) || in isCXXDeclarationStatement()
2266 Actions.ClassifyName(getCurScope(), SS, Name, NameLoc, Next, &CCC); in NameAfterArrowIsNonType()
2392 getCurScope(), &SS)) in isExplicitBool()
H A DParseHLSL.cpp75 Decl *D = Actions.HLSL().ActOnStartBuffer(getCurScope(), IsCBuffer, BufferLoc, in ParseHLSLBuffer()
H A DParseOpenACC.cpp622 getActions().ActOnCondition(getCurScope(), ER.get()->getExprLoc(), in ParseOpenACCConditionExpr()
1252 Res = Actions.ActOnIdExpression(getCurScope(), ScopeSpec, TemplateKWLoc, in ParseOpenACCIDExpression()
H A DParseStmtAsm.cpp662 Actions.BuildUnaryOp(getCurScope(), AsmLoc, UO_AddrOf, OpExpr).get(); in ParseMicrosoftAsmStatement()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DScopedHashTable.h208 ScopeTy *getCurScope() { return CurScope; } in getCurScope() function
209 const ScopeTy *getCurScope() const { return CurScope; } in getCurScope() function
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaPseudoObject.cpp1399 S.ActOnMemberAccessExpr(S.getCurScope(), InstanceBase, SourceLocation(), in buildGet()
1409 return S.BuildCallExpr(S.getCurScope(), GetterExpr.get(), in buildGet()
1428 S.ActOnMemberAccessExpr(S.getCurScope(), InstanceBase, SourceLocation(), in buildSet()
1441 return S.BuildCallExpr(S.getCurScope(), SetterExpr.get(), in buildSet()
H A DSemaStmt.cpp535 getCurScope()->isInOpenACCComputeConstructScope(Scope::SwitchScope)) { in ActOnCaseStmt()
560 getCurScope()->isInOpenACCComputeConstructScope(Scope::SwitchScope)) { in ActOnDefaultStmt()
589 if (getCurScope()->isInOpenACCComputeConstructScope()) in ActOnLabelStmt()
2453 *BeginExpr = SemaRef.ActOnCoawaitExpr(SemaRef.getCurScope(), ColonLoc, in BuildNonArrayForRange()
2607 Scope *S = getCurScope(); in BuildCXXForRangeStmt()
3133 if (getCurScope()->isInOpenACCComputeConstructScope()) in ActOnGotoStmt()
3166 if (getCurScope()->isInOpenACCComputeConstructScope()) in ActOnIndirectGotoStmt()
3745 if (getCurScope()->isInOpenACCComputeConstructScope()) in ActOnReturnStmt()
4209 if (getCurScope() && getCurScope()->isOpenMPSimdDirectiveScope()) in ActOnCXXTryBlock()
H A DSemaOpenMP.cpp1005 Scope *getCurScope() const { in getCurScope() function in __anon1dd12e440111::DSAStackTy
1695 Scope *CurScope = getCurScope(); in isOpenMPLocal()
3031 SemaRef.getCurScope(), Stack)) in finishLinearClauses()
3051 SemaRef.getCurScope()); in ValidateCandidate()
3072 SemaRef.getCurScope()); in ValidateCandidate()
4787 if (!Stack->getCurScope()) in checkNestingOfRegions()
5524 Actions.getCurScope(), {}, BO_Assign, DistRef, Dist)); in buildDistanceFunc()
5602 Body = AssertSuccess(Actions.BuildBinOp(Actions.getCurScope(), {}, in buildLoopVarFunc()
5847 S, Stack->getCurScope(), MapperIdScopeSpec, DefaultMapperId, in processImplicitMapsWithDefaultMappers()
7404 if (SemaRef.LookupName(Result, SemaRef.getCurScope())) { in checkOpenMPDeclareVariantFunction()
[all …]
H A DSemaStmtAsm.cpp786 ExprResult Result = ActOnIdExpression(getCurScope(), SS, TemplateKWLoc, Id, in LookupInlineAsmIdentifier()
838 if (LookupName(BaseResult, getCurScope()) && BaseResult.isSingleResult()) in LookupInlineAsmField()
H A DSemaCoroutine.cpp782 if (isWithinCatchScope(S.getCurScope())) { in checkSuspensionContext()
1553 S.BuildCallExpr(S.getCurScope(), NewRef.get(), Loc, NewArgs, Loc); in makeNewAndDeleteExpr()
1603 S.BuildCallExpr(S.getCurScope(), DeleteRef.get(), Loc, DeleteArgs, Loc); in makeNewAndDeleteExpr()
H A DSemaTemplateDeductionGuide.cpp889 SemaRef.BuildBinOp(SemaRef.getCurScope(), SourceLocation{}, in buildAssociatedConstraints()
1237 SemaRef.BuildBinOp(SemaRef.getCurScope(), SourceLocation{}, in DeclareImplicitDeductionGuidesForTypeAlias()
H A DHLSLExternalSemaSource.cpp137 S.LookupName(R, S.getCurScope()); in lookupBuiltinFunction()
/freebsd/contrib/llvm-project/clang/lib/Interpreter/
H A DIncrementalParser.cpp266 S.ActOnTranslationUnitScope(P->getCurScope()); in ParseOrWrapTopLevelDecl()
/freebsd/contrib/llvm-project/clang/include/clang/Parse/
H A DParser.h502 Scope *getCurScope() const { return Actions.getCurScope(); } in getCurScope() function
3182 if (!P.Actions.ActOnCXXEnterDeclaratorScope(P.getCurScope(), SS)) in EnterDeclaratorScope()
3189 P.Actions.ActOnCXXExitDeclaratorScope(P.getCurScope(), SS); in ~DeclaratorScopeObj()

12