Home
last modified time | relevance | path

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

12

/openbsd-src/gnu/llvm/clang/lib/Parse/
H A DParseObjc.cpp58 Actions.CodeCompleteObjCAtDirective(getCurScope()); in ParseObjCAtDirectives()
193 Actions.ActOnAtEnd(getCurScope(), AtLoc); in CheckNestedObjCContexts()
240 Actions.CodeCompleteObjCInterfaceDecl(getCurScope()); in ParseObjCAtInterfaceDeclaration()
259 ObjCTypeParamListScope typeParamScope(Actions, getCurScope()); in ParseObjCAtInterfaceDeclaration()
274 Actions.CodeCompleteObjCInterfaceCategory(getCurScope(), nameId, nameLoc); in ParseObjCAtInterfaceDeclaration()
329 Actions.CodeCompleteObjCSuperclass(getCurScope(), nameId, nameLoc); in ParseObjCAtInterfaceDeclaration()
375 getCurScope(), AtLoc, nameId, nameLoc, typeParameterList, superClassId, in ParseObjCAtInterfaceDeclaration()
467 getCurScope(), ObjCTypeParamVariance::Invariant, SourceLocation(), in parseObjCTypeParamListOrProtocolRefs()
545 getCurScope(), variance, varianceLoc, typeParams.size(), paramName, in parseObjCTypeParamListOrProtocolRefs()
586 getCurScope(), in parseObjCTypeParamListOrProtocolRefs()
[all …]
H A DParseExpr.cpp154 LHS = Actions.ActOnUnaryOp(getCurScope(), ExtLoc, tok::kw___extension__, in ParseExpressionWithLeadingExtension()
164 Actions.CodeCompleteExpression(getCurScope(), in ParseAssignmentExpression()
327 ExprResult Op = Actions.ActOnBinOp(getCurScope(), LogicalAndLoc, in ParseConstraintLogicalAndExpression()
362 ExprResult Op = Actions.ActOnBinOp(getCurScope(), LogicalOrLoc, in ParseConstraintLogicalOrExpression()
630 Actions.ActOnBinOp(getCurScope(), OpToken.getLocation(), in ParseRHSOfBinaryExpression()
992 Res = Actions.ActOnNumericConstant(Tok, /*UDLScope*/getCurScope()); in ParseCastExpression()
1020 Res = Actions.ActOnNameClassifiedAsOverloadSet(getCurScope(), Res.get()); in ParseCastExpression()
1168 (Actions.getTypeName(II, ILoc, getCurScope()) || in ParseCastExpression()
1170 (&II == Ident_super && getCurScope()->isInObjcMethodScope()))) { in ParseCastExpression()
1176 getCurScope(), II, ILoc, ExprStatementTokLoc == ILoc); in ParseCastExpression()
[all …]
H A DParseExprCXX.cpp98 if (!Actions.isTemplateName(getCurScope(), SS, /*hasTemplateKeyword=*/false, in CheckForTemplateAndDigraph()
243 Actions.CodeCompleteQualifiedId(getCurScope(), SS, EnteringContext, in ParseOptionalCXXScopeSpecifier()
323 getCurScope(), SS, TemplateKWLoc, TemplateName, ObjectType, in ParseOptionalCXXScopeSpecifier()
361 Actions.ActOnCXXNestedNameSpecifier(getCurScope(), in ParseOptionalCXXScopeSpecifier()
398 if (Actions.IsInvalidUnlessNestedName(getCurScope(), SS, IdInfo, in ParseOptionalCXXScopeSpecifier()
458 getCurScope(), IdInfo, EnteringContext, SS, CorrectionFlagPtr, in ParseOptionalCXXScopeSpecifier()
485 if (TemplateNameKind TNK = Actions.isTemplateName(getCurScope(), SS, in ParseOptionalCXXScopeSpecifier()
535 getCurScope(), SS, TemplateNameLoc, TemplateName, ObjectType, in ParseOptionalCXXScopeSpecifier()
569 E = Actions.ActOnNameClassifiedAsNonType(getCurScope(), SS, ND, Loc, Tok); in tryParseCXXIdExpression()
613 getCurScope(), SS, TemplateKWLoc, Name, Tok.is(tok::l_paren), in tryParseCXXIdExpression()
[all …]
H A DParser.cpp407 N->Init(getCurScope(), ScopeFlags); in EnterScope()
410 Actions.CurScope = new Scope(getCurScope(), ScopeFlags, Diags); in EnterScope()
416 assert(getCurScope() && "Scope imbalance!"); in ExitScope()
420 Actions.ActOnPopScope(Tok.getLocation(), getCurScope()); in ExitScope()
422 Scope *OldScope = getCurScope(); in ExitScope()
435 : CurScope(ManageFlags ? Self->getCurScope() : nullptr) { in ParseScopeFlags()
456 delete getCurScope(); in ~Parser()
476 assert(getCurScope() == nullptr && "A scope is already active?"); in Initialize()
478 Actions.ActOnTranslationUnitScope(getCurScope()); in Initialize()
867 Actions.ActOnEmptyDeclaration(getCurScope(), Attrs, Tok.getLocation()); in ParseExternalDeclaration()
[all …]
H A DParseDeclCXX.cpp70 Actions.CodeCompleteNamespaceDecl(getCurScope()); in ParseNamespace()
159 if (getCurScope()->isClassScope() || getCurScope()->isTemplateParamScope() || in ParseNamespace()
160 getCurScope()->isInObjcMethodScope() || getCurScope()->getBlockParent() || in ParseNamespace()
161 getCurScope()->getFnParent()) { in ParseNamespace()
230 getCurScope(), InlineLoc, NamespaceLoc, IdentLoc, Ident, in ParseNamespace()
277 getCurScope(), InnerNSs[index].InlineLoc, InnerNSs[index].NamespaceLoc, in ParseInnerNamespace()
302 Actions.CodeCompleteNamespaceAliasDecl(getCurScope()); in ParseNamespaceAlias()
339 return Actions.ActOnNamespaceAliasDef(getCurScope(), NamespaceLoc, AliasLoc, in ParseNamespaceAlias()
359 getCurScope(), DS.getSourceRange().getBegin(), Lang.get(), in ParseLinkage()
378 getCurScope(), LinkageSpec, SourceLocation()) in ParseLinkage()
[all …]
H A DParseStmt.cpp190 Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_Statement); in ParseStatementOrDeclarationAfterAttributes()
535 if (Tok.is(tok::colon) && getCurScope()->isSwitchScope() && in ParseExprStatement()
618 ParseScopeFlags FilterScope(this, getCurScope()->getFlags() | in ParseSEHExceptBlock()
678 return Actions.ActOnSEHLeaveStmt(LeaveLoc, getCurScope()); in ParseSEHLeaveStatement()
800 Actions.CodeCompleteCase(getCurScope()); in ParseCaseStatement()
944 SubStmt.get(), getCurScope()); in ParseDefaultStatement()
1162 Actions.FinalizeDeclaratorGroup(getCurScope(), DS, DeclsInGroup); in ParseCompoundStatementBody()
1295 Cond = Actions.ActOnCondition(getCurScope(), Loc, CondExpr.get(), CK, in ParseParenExprOrCondition()
1315 Cond = Actions.ActOnCondition(getCurScope(), Loc, CondExpr.get(), CK, in ParseParenExprOrCondition()
1600 Actions.CodeCompleteAfterIf(getCurScope(), IsBracedThen); in ParseIfStatement()
[all …]
H A DParseTemplate.cpp32 return Actions.getCurScope(); in ReenterTemplateScopes()
234 getCurScope(), AS, DS, ParsedAttributesView::none(), in ParseSingleDeclarationAfterTemplate()
296 Actions.ShouldEnterDeclaratorScope(getCurScope(), ScopeSpec)) in ParseSingleDeclarationAfterTemplate()
453 return Actions.ActOnConceptDefinition(getCurScope(), in ParseConceptDefinition()
682 getCurScope(), D, Depth, Position, /*EqualLoc=*/SourceLocation(), in ParseTemplateParameter()
749 auto TNK = Actions.isTemplateName(getCurScope(), SS, in TryAnnotateTypeConstraint()
857 NamedDecl *NewDecl = Actions.ActOnTypeParameter(getCurScope(), in ParseTypeParameter()
990 return Actions.ActOnTemplateTemplateParameter(getCurScope(), TemplateLoc, in ParseTemplateTemplateParameter()
1051 return Actions.ActOnNonTypeTemplateParameter(getCurScope(), ParamDecl, in ParseNonTypeTemplateParameter()
1377 getCurScope(), SS, TemplateKWLoc, Template, in AnnotateTemplateIdToken()
[all …]
H A DParseDecl.cpp68 return Actions.ActOnTypeName(getCurScope(), DeclaratorInfo); in ParseTypeName()
546 Actions.ActOnReenterCXXMethodParameter(getCurScope(), Param); in ParseGNUAttributeArgs()
1881 getCurScope(), AS_none, DS, ParsedAttributesView::none(), AnonRecord); in ParseSimpleDeclaration()
2182 Decl *ThisDecl = Actions.ActOnDeclarator(getCurScope(), D); in ParseDeclGroup()
2192 return Actions.FinalizeDeclaratorGroup(getCurScope(), DS, ThisDecl); in ParseDeclGroup()
2272 return Actions.FinalizeDeclaratorGroup(getCurScope(), DS, DeclsInGroup); in ParseDeclGroup()
2339 S = P.getCurScope(); in ParseDeclarationAfterDeclaratorAndAttributes()
2349 S = P.getCurScope(); in ParseDeclarationAfterDeclaratorAndAttributes()
2378 ThisDecl = Actions.ActOnDeclarator(getCurScope(), D); in ParseDeclarationAfterDeclaratorAndAttributes()
2383 ThisDecl = Actions.ActOnTemplateDeclarator(getCurScope(), in ParseDeclarationAfterDeclaratorAndAttributes()
[all …]
H A DParseCXXInlineMethods.cpp39 FnD = Actions.ActOnFriendFunctionDecl(getCurScope(), D, in ParseCXXInlineMethodDef()
42 FnD = Actions.ActOnCXXMemberDeclarator(getCurScope(), AS, D, in ParseCXXInlineMethodDef()
46 Actions.ProcessDeclAttributeList(getCurScope(), FnD, AccessAttrs); in ParseCXXInlineMethodDef()
319 P.Actions.ActOnStartDelayedMemberDeclarations(P.getCurScope(), in ReenterClassScopeRAII()
326 P.Actions.ActOnFinishDelayedMemberDeclarations(P.getCurScope(), in ~ReenterClassScopeRAII()
347 Actions.ActOnStartDelayedCXXMethodDeclaration(getCurScope(), LM.Method); in ParseLexedMethodDeclaration()
358 Actions.ActOnDelayedCXXMethodParameter(getCurScope(), Param); in ParseLexedMethodDeclaration()
518 Actions.ActOnFinishDelayedCXXMethodDeclaration(getCurScope(), LM.Method); in ParseLexedMethodDeclaration()
559 Actions.ActOnStartOfFunctionDef(getCurScope(), LM.D); in ParseLexedMethodDef()
773 Actions.ActOnFinishDelayedAttribute(getCurScope(), LA.Decls[i], Attrs); in ParseLexedAttribute()
H A DParseInit.cpp255 getCurScope()->isInObjcMethodScope()) { in ParseInitializerWithPotentialDesignator()
292 getCurScope(), II, IILoc, II == Ident_super, in ParseInitializerWithPotentialDesignator()
H A DParseOpenMP.cpp90 P->getCurScope(), SS, NameInfo, Kind); in operator ()()
366 getCurScope(), Actions.getCurLexicalContext(), Name, ReductionTypes, AS); in ParseOpenMPDeclareReductionDirective()
377 Actions.ActOnOpenMPDeclareReductionCombinerStart(getCurScope(), D); in ParseOpenMPDeclareReductionDirective()
413 Actions.ActOnOpenMPDeclareReductionInitializerStart(getCurScope(), in ParseOpenMPDeclareReductionDirective()
446 return Actions.ActOnOpenMPDeclareReductionDirectiveEnd(getCurScope(), DRD, in ParseOpenMPDeclareReductionDirective()
458 Actions.CodeCompleteInitializer(getCurScope(), OmpPrivParm); in ParseOpenMPReductionInitializerForDecl()
593 Actions.StartOpenMPDSABlock(OMPD_declare_mapper, DirName, getCurScope(), Loc); in ParseOpenMPDeclareMapperDirective()
597 getCurScope(), MapperType, Range.getBegin(), VName); in ParseOpenMPDeclareMapperDirective()
627 getCurScope(), Actions.getCurLexicalContext(), MapperId, MapperType, in ParseOpenMPDeclareMapperDirective()
654 return Actions.ActOnOpenMPDeclareMapperVarDecl(getCurScope(), DeclaratorInfo); in parseOpenMPDeclareMapperVarDecl()
[all …]
H A DParseHLSL.cpp74 Decl *D = Actions.ActOnStartHLSLBuffer(getCurScope(), IsCBuffer, BufferLoc, in ParseHLSLBuffer()
H A DParseTentative.cpp78 Actions.isDeductionGuideName(getCurScope(), *II, Tok.getLocation(), in isCXXDeclarationStatement()
80 if (Actions.isCurrentClassName(*II, getCurScope(), &SS) || in isCXXDeclarationStatement()
2240 getCurScope(), &SS)) in isExplicitBool()
H A DParseStmtAsm.cpp662 Actions.BuildUnaryOp(getCurScope(), AsmLoc, UO_AddrOf, OpExpr).get(); in ParseMicrosoftAsmStatement()
H A DParsePragma.cpp656 Actions.ActOnPragmaUnused(Tok, getCurScope(), UnusedLoc); in HandlePragmaUnused()
719 Actions.ActOnPragmaDump(getCurScope(), Tok.getLocation(), II); in HandlePragmaDump()
844 Actions.ActOnCapturedRegionStart(Loc, getCurScope(), CR_Default, in HandlePragmaCaptured()
/openbsd-src/gnu/llvm/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
/openbsd-src/gnu/llvm/clang/lib/Interpreter/
H A DIncrementalParser.cpp169 S.ActOnTranslationUnitScope(P->getCurScope()); in ParseOrWrapTopLevelDecl()
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaPseudoObject.cpp1476 S.ActOnMemberAccessExpr(S.getCurScope(), InstanceBase, SourceLocation(), in buildGet()
1486 return S.BuildCallExpr(S.getCurScope(), GetterExpr.get(), in buildGet()
1505 S.ActOnMemberAccessExpr(S.getCurScope(), InstanceBase, SourceLocation(), in buildSet()
1518 return S.BuildCallExpr(S.getCurScope(), SetterExpr.get(), in buildSet()
H A DSemaStmtAsm.cpp784 ExprResult Result = ActOnIdExpression(getCurScope(), SS, TemplateKWLoc, Id, in LookupInlineAsmIdentifier()
836 if (LookupName(BaseResult, getCurScope()) && BaseResult.isSingleResult()) in LookupInlineAsmField()
H A DSemaOpenMP.cpp977 Scope *getCurScope() const { in getCurScope() function in __anon7e4ded5b0111::DSAStackTy
1670 Scope *CurScope = getCurScope(); in isOpenMPLocal()
2993 SemaRef.getCurScope()); in ValidateCandidate()
3014 SemaRef.getCurScope()); in ValidateCandidate()
4987 if (Stack->getCurScope()) { in checkNestingOfRegions()
5719 Actions.getCurScope(), {}, BO_Assign, DistRef, Dist)); in buildDistanceFunc()
5797 Body = AssertSuccess(Actions.BuildBinOp(Actions.getCurScope(), {}, in buildLoopVarFunc()
6041 S, Stack->getCurScope(), MapperIdScopeSpec, DefaultMapperId, in processImplicitMapsWithDefaultMappers()
7464 if (LookupName(Result, getCurScope())) { in checkOpenMPDeclareVariantFunction()
9266 DSA.getCurScope(), For ? For->getCond() : CXXFor->getCond(), Captures); in checkOpenMPIterationSpace()
[all …]
H A DSemaCoroutine.cpp782 if (isWithinCatchScope(S.getCurScope())) { in checkSuspensionContext()
1538 S.BuildCallExpr(S.getCurScope(), NewRef.get(), Loc, NewArgs, Loc); in makeNewAndDeleteExpr()
1588 S.BuildCallExpr(S.getCurScope(), DeleteRef.get(), Loc, DeleteArgs, Loc); in makeNewAndDeleteExpr()
H A DHLSLExternalSemaSource.cpp136 S.LookupParsedName(R, S.getCurScope(), &SS, false); in lookupBuiltinFunction()
H A DSemaCXXScopeSpec.cpp296 for (Scope *S = getCurScope(); S; S = S->getParent()) { in ActOnSuperScopeSpecifier()
H A DSemaStmt.cpp2600 *BeginExpr = SemaRef.ActOnCoawaitExpr(SemaRef.getCurScope(), ColonLoc, in BuildNonArrayForRange()
2756 Scope *S = getCurScope(); in BuildCXXForRangeStmt()
4453 if (getCurScope() && getCurScope()->isOpenMPSimdDirectiveScope()) in ActOnCXXTryBlock()
/openbsd-src/gnu/llvm/clang/include/clang/Parse/
H A DParser.h453 Scope *getCurScope() const { return Actions.getCurScope(); } in getCurScope() function
3036 if (!P.Actions.ActOnCXXEnterDeclaratorScope(P.getCurScope(), SS)) in EnterDeclaratorScope()
3043 P.Actions.ActOnCXXExitDeclaratorScope(P.getCurScope(), SS); in ~DeclaratorScopeObj()

12